Libraries refactor and add some sinks #4

Closed
m wants to merge 136 commits from library-refactor into master
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 348a27d3df - Show all commits

View File

@ -160,8 +160,10 @@ class IRCBot(irc.IRCClient):
self.parse(user, host, channel, msg[1:]) self.parse(user, host, channel, msg[1:])
elif host in self.admins and channel == nick: elif host in self.admins and channel == nick:
if len(msg) > 0: if len(msg) > 0:
if msg.split()[0] != "!": spl = msg.split()
self.parse(user, host, channel, msg) if len(spl) > 0:
if spl[0] != "!":
self.parse(user, host, channel, msg)
def noticed(self, user, channel, msg): def noticed(self, user, channel, msg):
""" """