Skip to content

Commit

Permalink
Update irc.py
Browse files Browse the repository at this point in the history
Sanitize potential issues with plugins allowing end users to send any IRC message they want
  • Loading branch information
Red-M committed Aug 28, 2015
1 parent 8a5a3b8 commit a435940
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cloudbot/clients/irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def close(self):

def message(self, target, *messages):
for text in messages:
text = text[:-1].replace("\n","\\n").replace("\r","\\r")+text[-1]
self.cmd("PRIVMSG", target, text)

def action(self, target, text):
Expand Down

0 comments on commit a435940

Please sign in to comment.