attempt to fix random crashing

master
mutantmonkey 2011-11-16 17:36:14 -05:00
parent a5c76f3f60
commit f24fc68a3a
1 changed files with 2 additions and 0 deletions

2
irc.py
View File

@ -15,6 +15,8 @@ class Origin(object):
source = re.compile(r'([^!]*)!?([^@]*)@?(.*)')
def __init__(self, bot, source, args):
if not source:
source = ""
match = Origin.source.match(source)
self.nick, self.user, self.host = match.groups()