mirror of
https://github.com/FAUSheppy/config
synced 2025-12-08 23:58:32 +01:00
msg now only push with magic word
This commit is contained in:
@@ -87,6 +87,8 @@ def irc():
|
|||||||
return ""
|
return ""
|
||||||
msg = " ".join(tmp[-1].split(" ")[2:])[:50]
|
msg = " ".join(tmp[-1].split(" ")[2:])[:50]
|
||||||
user = tmp[-1].split(" ")[1][:15]
|
user = tmp[-1].split(" ")[1][:15]
|
||||||
|
if not "%push" in msg:
|
||||||
|
return ""
|
||||||
ret_string = "MSG FROM: "+user+"-> "+msg.rstrip('\n')+" - [ "+str(len(tmp))+" total ]"
|
ret_string = "MSG FROM: "+user+"-> "+msg.rstrip('\n')+" - [ "+str(len(tmp))+" total ]"
|
||||||
return color_panel(ret_string,RED)
|
return color_panel(ret_string,RED)
|
||||||
except(IOError):
|
except(IOError):
|
||||||
|
|||||||
Reference in New Issue
Block a user