msg now only push with magic word

This commit is contained in:
Sheppy
2017-02-25 23:39:27 +01:00
parent 5bb98610bd
commit a1a36b622b

View File

@@ -87,6 +87,8 @@ def irc():
return ""
msg = " ".join(tmp[-1].split(" ")[2:])[:50]
user = tmp[-1].split(" ")[1][:15]
if not "%push" in msg:
return ""
ret_string = "MSG FROM: "+user+"-> "+msg.rstrip('\n')+" - [ "+str(len(tmp))+" total ]"
return color_panel(ret_string,RED)
except(IOError):