3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

inspircd: rename _operUp to _oper_up

This commit is contained in:
James Lu 2017-07-07 13:27:45 -07:00
parent 5d5c861a93
commit 67a36b7ebe

View File

@ -65,7 +65,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
modes=raw_modes, ip=ip, realname=realname, modes=raw_modes, ip=ip, realname=realname,
realhost=realhost)) realhost=realhost))
if ('o', None) in modes or ('+o', None) in modes: if ('o', None) in modes or ('+o', None) in modes:
self._operUp(uid, opertype) self._oper_up(uid, opertype)
return u return u
def join(self, client, channel): def join(self, client, channel):
@ -155,7 +155,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
self.updateTS(server, channel, ts, changedmodes) self.updateTS(server, channel, ts, changedmodes)
def _operUp(self, target, opertype=None): def _oper_up(self, target, opertype=None):
"""Opers a client up (internal function specific to InspIRCd). """Opers a client up (internal function specific to InspIRCd).
This should be called whenever user mode +o is set on anyone, because This should be called whenever user mode +o is set on anyone, because
@ -202,7 +202,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
if ('+o', None) in modes and not utils.isChannel(target): if ('+o', None) in modes and not utils.isChannel(target):
# https://github.com/inspircd/inspircd/blob/master/src/modules/m_spanningtree/opertype.cpp#L26-L28 # https://github.com/inspircd/inspircd/blob/master/src/modules/m_spanningtree/opertype.cpp#L26-L28
# Servers need a special command to set umode +o on people. # Servers need a special command to set umode +o on people.
self._operUp(target) self._oper_up(target)
self.apply_modes(target, modes) self.apply_modes(target, modes)
joinedmodes = self.join_modes(modes) joinedmodes = self.join_modes(modes)
if utils.isChannel(target): if utils.isChannel(target):