summaryrefslogtreecommitdiff
path: root/irc.py
diff options
context:
space:
mode:
authorBrian Sherson <caretaker82@euclid.shersonb.net>2013-09-05 17:54:33 -0700
committerBrian Sherson <caretaker82@euclid.shersonb.net>2013-09-05 17:54:33 -0700
commit19f54362cb53c39692fd8fe60ba497bb964f3960 (patch)
treeb89f27a1bb1b75ee237193807c462b409e0e8c98 /irc.py
parent97d3076e651c36dbcfe4fe478762e63e83a3848b (diff)
Just another update
Diffstat (limited to 'irc.py')
-rw-r--r--irc.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/irc.py b/irc.py
index 4718187..7ed9d1a 100644
--- a/irc.py
+++ b/irc.py
@@ -386,7 +386,11 @@ class Connection(Thread):
channel.modes["e"] = [(exception, nick, int(exctime))]
elif cmd == 352: # WHO reply
(channame, ident, host, serv, nick, flags) = params.split()
- (hops, realname) = extinfo.split(" ", 1)
+ try:
+ (hops, realname) = extinfo.split(" ", 1)
+ except ValueError:
+ hops = extinfo
+ realname = None
channel = self.channel(channame)
self.event("onRecv", channel.modules, line=line, data=parsed)
if channel.name != channame: