mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 23:09:23 +01:00
Merge branch 'master' into devel
Conflicts: protocols/inspircd.py
This commit is contained in:
commit
6476aefb5f
@ -142,12 +142,13 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
|||||||
and the change will be reflected here."""
|
and the change will be reflected here."""
|
||||||
userobj = self.irc.users[target]
|
userobj = self.irc.users[target]
|
||||||
try:
|
try:
|
||||||
otype = opertype or userobj.opertype
|
otype = opertype or userobj.opertype or 'IRC_Operator'
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
log.debug('(%s) opertype field for %s (%s) isn\'t filled yet!',
|
log.debug('(%s) opertype field for %s (%s) isn\'t filled yet!',
|
||||||
self.irc.name, target, userobj.nick)
|
self.irc.name, target, userobj.nick)
|
||||||
# whatever, this is non-standard anyways.
|
# whatever, this is non-standard anyways.
|
||||||
otype = 'IRC_Operator'
|
otype = 'IRC_Operator'
|
||||||
|
assert otype, "Tried to send an empty OPERTYPE!"
|
||||||
log.debug('(%s) Sending OPERTYPE from %s to oper them up.',
|
log.debug('(%s) Sending OPERTYPE from %s to oper them up.',
|
||||||
self.irc.name, target)
|
self.irc.name, target)
|
||||||
userobj.opertype = otype
|
userobj.opertype = otype
|
||||||
|
Loading…
Reference in New Issue
Block a user