Strip ASCII color codes from messages. Fixes #18
This commit is contained in:
parent
a8b5642c12
commit
db3f3ea308
1 changed files with 1 additions and 0 deletions
|
@ -211,6 +211,7 @@ class Logbot(SingleServerIRCBot):
|
||||||
else:
|
else:
|
||||||
chans = event.target()
|
chans = event.target()
|
||||||
msg = self.format_event(name, event, params)
|
msg = self.format_event(name, event, params)
|
||||||
|
msg = re.sub(r'\[(\d{1,2})m', '', msg)
|
||||||
msg = urlify2(msg)
|
msg = urlify2(msg)
|
||||||
|
|
||||||
# In case there are still events that don't supply a channel name (like /quit and /nick did)
|
# In case there are still events that don't supply a channel name (like /quit and /nick did)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue