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

Merge branch 'master' into devel

Conflicts:
	protocols/inspircd.py
This commit is contained in:
James Lu 2015-09-14 16:55:35 -07:00
commit 6476aefb5f

View File

@ -142,12 +142,13 @@ class InspIRCdProtocol(TS6BaseProtocol):
and the change will be reflected here."""
userobj = self.irc.users[target]
try:
otype = opertype or userobj.opertype
otype = opertype or userobj.opertype or 'IRC_Operator'
except AttributeError:
log.debug('(%s) opertype field for %s (%s) isn\'t filled yet!',
self.irc.name, target, userobj.nick)
# whatever, this is non-standard anyways.
otype = 'IRC_Operator'
assert otype, "Tried to send an empty OPERTYPE!"
log.debug('(%s) Sending OPERTYPE from %s to oper them up.',
self.irc.name, target)
userobj.opertype = otype