Skip to content

Commit

Permalink
don't use one letter variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Feb 18, 2017
1 parent f62039d commit 71ece34
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bot.py
Expand Up @@ -12,17 +12,17 @@ def __init__(self, channel, name, server, port):
irc.bot.SingleServerIRCBot.__init__(self, [(server, int(port))], name, name)
self.channel = channel

def on_welcome(self, c, e):
c.join(self.channel)
def on_welcome(self, connection, _):
connection.join(self.channel)

def on_privmsg(self, c, e):
self.message(e, e.arguments[0])
def on_privmsg(self, _, event):
self.message(event, event.arguments[0])

def on_pubmsg(self, c, e):
self.message(e, e.arguments[0])
def on_pubmsg(self, _, event):
self.message(event, event.arguments[0])

def message(self, e, msg):
user = e.source.split('!')[0]
def message(self, event, msg):
user = event.source.split('!')[0]
ignore = config('ignore').split(' ')
if (user in ignore):
return
Expand Down

0 comments on commit 71ece34

Please sign in to comment.