Skip to content

Commit

Permalink
probably works
Browse files Browse the repository at this point in the history
  • Loading branch information
dmptrluke committed Aug 28, 2015
1 parent 1744481 commit 7ccb5c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloudbot/clients/irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,15 @@ def close(self):

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

def action(self, target, text):
text = text.replace("\n", "").replace("\r", "")
self.ctcp(target, "ACTION", text)

def notice(self, target, text):
text = text.replace("\n", "").replace("\r", "")
self.cmd("NOTICE", target, text)

def set_nick(self, nick):
Expand Down

0 comments on commit 7ccb5c4

Please sign in to comment.