mirror of
https://github.com/FAUSheppy/config
synced 2025-12-07 07:21:37 +01:00
fixed bug with irc messages
This commit is contained in:
@@ -90,9 +90,9 @@ def irc():
|
|||||||
user = tmp[-1].split(" ")[1][:15]
|
user = tmp[-1].split(" ")[1][:15]
|
||||||
if not "%push" in msg:
|
if not "%push" in msg:
|
||||||
return ""
|
return ""
|
||||||
pattern = re.compile("(\^+fg[(]+#[0-9]+[)]+)|\n|\r|\t")
|
pattern = re.compile("\^+[fb]g[(]+#[0-9]+[)]+")
|
||||||
msg = re.sub(pattern,msg,"ESC_SEQ")
|
msg = re.sub(pattern,"",msg)
|
||||||
user = re.sub(pattern,user,"ESC_SEQ")
|
user = re.sub(pattern,"",user)
|
||||||
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