mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 21:29:24 +01:00
Converted to the new commands.wrap.
This commit is contained in:
parent
477ec6ead7
commit
67d8cf082a
@ -231,7 +231,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
self.pendingNickChanges[irc.getRealIrc()] = irc
|
self.pendingNickChanges[irc.getRealIrc()] = irc
|
||||||
else:
|
else:
|
||||||
irc.reply(irc.nick)
|
irc.reply(irc.nick)
|
||||||
nick = wrap(nick, ['?nick'])
|
nick = wrap(nick, [additional('nick')])
|
||||||
|
|
||||||
def part(self, irc, msg, args):
|
def part(self, irc, msg, args):
|
||||||
"""<channel> [<channel> ...] [<reason>]
|
"""<channel> [<channel> ...] [<reason>]
|
||||||
@ -342,7 +342,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
expires += time.time()
|
expires += time.time()
|
||||||
ircdb.ignores.add(hostmask, expires)
|
ircdb.ignores.add(hostmask, expires)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
ignore = wrap(ignore, ['hostmask', ('?int', 0)])
|
ignore = wrap(ignore, ['hostmask', additional('int', 0)])
|
||||||
|
|
||||||
def unignore(self, irc, msg, args, hostmask):
|
def unignore(self, irc, msg, args, hostmask):
|
||||||
"""<hostmask|nick>
|
"""<hostmask|nick>
|
||||||
|
Loading…
Reference in New Issue
Block a user