diff --git a/coreplugin.py b/coreplugin.py index 3adba09..628bfbe 100644 --- a/coreplugin.py +++ b/coreplugin.py @@ -135,7 +135,10 @@ utils.add_hook(handle_mode, 'MODE') def handle_operup(irc, source, command, args): """Logs successful oper-ups on networks.""" - log.debug("(%s) Successful oper-up (opertype %r) from %s", irc.name, args.get('text'), utils.getHostmask(irc, source)) + otype = args.get('text', 'IRC Operator') + log.debug("(%s) Successful oper-up (opertype %r) from %s", irc.name, otype, utils.getHostmask(irc, source)) + irc.users[source].opertype = otype + utils.add_hook(handle_operup, 'CLIENT_OPERED') def handle_services_login(irc, source, command, args):