Encyclopedia: Fix 'otherUser' → 'nick' on commands.
This commit is contained in:
parent
5cc19abfcc
commit
2bd46f38ff
|
@ -24,7 +24,7 @@ import supybot
|
||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
from importlib import reload
|
from importlib import reload
|
||||||
|
|
||||||
__version__ = "3.8.0"
|
__version__ = "3.9.0"
|
||||||
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
||||||
__contributors__ = {
|
__contributors__ = {
|
||||||
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
||||||
|
|
|
@ -190,7 +190,7 @@ class Encyclopedia(callbacks.Plugin):
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
except:
|
except:
|
||||||
irc.error('User %s is not registered' % name)
|
irc.error('User %s is not registered' % name)
|
||||||
add = wrap(add, ['otherUser'])
|
add = wrap(add, ['nick'])
|
||||||
|
|
||||||
def remove(self, irc, msg, args, name):
|
def remove(self, irc, msg, args, name):
|
||||||
"""<name>
|
"""<name>
|
||||||
|
@ -206,7 +206,7 @@ class Encyclopedia(callbacks.Plugin):
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
except:
|
except:
|
||||||
irc.error('User %s is not registered or not an editor' % name)
|
irc.error('User %s is not registered or not an editor' % name)
|
||||||
remove = wrap(remove, ['otherUser'])
|
remove = wrap(remove, ['nick'])
|
||||||
|
|
||||||
def editors(self, irc, msg, args):
|
def editors(self, irc, msg, args):
|
||||||
"""takes no arguments
|
"""takes no arguments
|
||||||
|
@ -922,9 +922,8 @@ class Encyclopedia(callbacks.Plugin):
|
||||||
edit_rmsg = "Edited: None found"
|
edit_rmsg = "Edited: None found"
|
||||||
else:
|
else:
|
||||||
edit_rmsg = 'Edited: %s' % ', '.join(edit_ret)
|
edit_rmsg = 'Edited: %s' % ', '.join(edit_ret)
|
||||||
irc.reply(auth_rmsg)
|
irc.reply("%s; %s" % (auth_rmsg, edit_rmsg))
|
||||||
irc.reply(edit_rmsg)
|
lookup = wrap(lookup, [optional("nick"), optional("channel")])
|
||||||
lookup = wrap(lookup, [optional("otherUser"), optional("channel")])
|
|
||||||
|
|
||||||
class ignore(callbacks.Commands):
|
class ignore(callbacks.Commands):
|
||||||
def add(self, irc, msg, args, banmask, expires, channel):
|
def add(self, irc, msg, args, banmask, expires, channel):
|
||||||
|
|
Loading…
Reference in New Issue