From 19ac5b59a51988573eeab6ff77ded38ef4e93d04 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 26 Mar 2016 13:15:22 -0700 Subject: [PATCH] protocols: drop underscores from pre-defined opertypes --- protocols/ts6.py | 4 ++-- protocols/unreal.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protocols/ts6.py b/protocols/ts6.py index 835c5ba..de7f2bd 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -508,7 +508,7 @@ class TS6Protocol(TS6BaseProtocol): # Call the OPERED UP hook if +o is being added to the mode list. if ('+o', None) in parsedmodes: - otype = 'Server_Administrator' if ('+a', None) in parsedmodes else 'IRC_Operator' + otype = 'Server Administrator' if ('+a', None) in parsedmodes else 'IRC Operator' self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': otype}]) # Set the accountname if present @@ -576,7 +576,7 @@ class TS6Protocol(TS6BaseProtocol): utils.applyModes(self.irc, target, changedmodes) # Call the OPERED UP hook if +o is being set. if ('+o', None) in changedmodes: - otype = 'Server_Administrator' if ('a', None) in self.irc.users[target].modes else 'IRC_Operator' + otype = 'Server Administrator' if ('a', None) in self.irc.users[target].modes else 'IRC Operator' self.irc.callHooks([target, 'CLIENT_OPERED', {'text': otype}]) return {'target': target, 'modes': changedmodes} diff --git a/protocols/unreal.py b/protocols/unreal.py index c897e26..f53fabb 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -371,7 +371,7 @@ class UnrealProtocol(TS6BaseProtocol): if ('+o', None) in parsedmodes: # If +o being set, call the CLIENT_OPERED internal hook. - self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': 'IRC_Operator'}]) + self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': 'IRC Operator'}]) if ('+x', None) not in parsedmodes: # If +x is not set, update to use the person's real host. @@ -673,7 +673,7 @@ class UnrealProtocol(TS6BaseProtocol): if ('+o', None) in parsedmodes: # If +o being set, call the CLIENT_OPERED internal hook. - self.irc.callHooks([numeric, 'CLIENT_OPERED', {'text': 'IRC_Operator'}]) + self.irc.callHooks([numeric, 'CLIENT_OPERED', {'text': 'IRC Operator'}]) self.checkCloakChange(numeric, parsedmodes)