attempt to fix random crashing
This commit is contained in:
2
irc.py
2
irc.py
@@ -15,6 +15,8 @@ class Origin(object):
|
|||||||
source = re.compile(r'([^!]*)!?([^@]*)@?(.*)')
|
source = re.compile(r'([^!]*)!?([^@]*)@?(.*)')
|
||||||
|
|
||||||
def __init__(self, bot, source, args):
|
def __init__(self, bot, source, args):
|
||||||
|
if not source:
|
||||||
|
source = ""
|
||||||
match = Origin.source.match(source)
|
match = Origin.source.match(source)
|
||||||
self.nick, self.user, self.host = match.groups()
|
self.nick, self.user, self.host = match.groups()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user