Skip to content

Commit

Permalink
Merge pull request #19 from wolfy1339/patch-1
Browse files Browse the repository at this point in the history
Make wrappers.py consistent
  • Loading branch information
itslukej authored Sep 18, 2016
2 parents 1b08a98 + 3daa5c3 commit 1091bec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zirc/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def invite(self, chan, user):
self.send("INVITE {0} {1}".format(user, chan))

def action(self, channel, message):
self.sendmsg(channel,"\x01ACTION " + message + "\x01")
self.sendmsg(channel,"\x01ACTION {0}\x01".format(message))

def kick(self,channel, user, message):
user = user.replace(" ","").replace(":","")
self.send("KICK " + channel + " " + user+ " :" + message)
self.send("KICK {0} {1} :{2}".format(user, channel, message))

def op(self, channel, nick):
self.send("MODE {0} +o {1}".format(channel, nick))
Expand Down Expand Up @@ -57,7 +57,7 @@ def notice(self, user, message):
self.send("NOTICE {0} :{1}".format(user, message))

def quit(self, message=""):
self.send("QUIT :"+message)
self.send("QUIT : {0}".format(message))

def ctcp(self, user, message):
self.send("PRIVMSG {0} :\x01{1}\x01\x01".format(user, message))
self.send("PRIVMSG {0} :\x01{1}\x01\x01".format(user, message))

0 comments on commit 1091bec

Please sign in to comment.