diff options
author | Brian Sherson <caretaker82@euclid.shersonb.net> | 2013-09-05 17:54:33 -0700 |
---|---|---|
committer | Brian Sherson <caretaker82@euclid.shersonb.net> | 2013-09-05 17:54:33 -0700 |
commit | 19f54362cb53c39692fd8fe60ba497bb964f3960 (patch) | |
tree | b89f27a1bb1b75ee237193807c462b409e0e8c98 | |
parent | 97d3076e651c36dbcfe4fe478762e63e83a3848b (diff) |
Just another update
-rw-r--r-- | irc.py | 6 | ||||
-rwxr-xr-x | startirc.py | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -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: diff --git a/startirc.py b/startirc.py index 6d0d8e7..23aabe9 100755 --- a/startirc.py +++ b/startirc.py @@ -12,7 +12,7 @@ import sys import irc import bouncer import readline -readline.parse_and_bind("tab: complete") +#readline.parse_and_bind("tab: complete") networks = {} @@ -54,7 +54,7 @@ logroot = os.path.join(os.environ["HOME"], "IRC") insomnialog = open(os.path.join(logroot, "insomnia.log"), "a") InsomniaIRC = networks["InsomniaIRC"] = irc.Connection( - server="irc.insomniairc.net", ipv6=False, ssl=True, log=insomnialog) + server="perseus.insomniairc.net", ipv6=False, ssl=True, log=insomnialog) ax = autoexec.Autoexec() log = logger.Logger(logroot) |