From f24fc68a3acefb4a0f7a4ce43d6881b5f5030a41 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Wed, 16 Nov 2011 17:36:14 -0500 Subject: [PATCH] attempt to fix random crashing --- irc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irc.py b/irc.py index e5cf732..546b955 100755 --- a/irc.py +++ b/irc.py @@ -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()