possibly prevent error if bot is opped before WHO results come back

This commit is contained in:
jacob1 2014-12-19 12:24:21 -05:00
parent a6a87c2dde
commit 15fab6c0b7

View File

@ -146,7 +146,8 @@ def connect_callback(cli):
return
if modeaction == "+o" and target == botconfig.NICK:
var.OPPED = True
var.USERS[botconfig.NICK]["modes"].add("o")
if botconfig.NICK in var.USERS:
var.USERS[botconfig.NICK]["modes"].add("o")
if var.PHASE == "none":
@hook("quietlistend", 294)