Easy peezy

Fix for Bug #1090008
This commit is contained in:
Kevin Murphy 2004-12-29 06:46:35 +00:00
parent 41103b1fa7
commit e867e4cab6

View File

@ -176,7 +176,7 @@ class Herald(callbacks.Privmsg):
additional('text')]) additional('text')])
def get(self, irc, msg, args, channel, user): def get(self, irc, msg, args, channel, user):
"""[<channel>] [<user|nick|hostmask>] """[<channel>] [<user|nick>]
Returns the current herald message for <user> (or the user Returns the current herald message for <user> (or the user
<nick|hostmask> is currently identified or recognized as). If <user> <nick|hostmask> is currently identified or recognized as). If <user>
@ -190,11 +190,11 @@ class Herald(callbacks.Privmsg):
irc.error('I have no herald for %s.' % user.name) irc.error('I have no herald for %s.' % user.name)
get = wrap(get, ['channel', first('otherUser', 'user')]) get = wrap(get, ['channel', first('otherUser', 'user')])
# I chose not to make <user|nick|hostmask> optional in this command because # I chose not to make <user|nick> optional in this command because
# if it's not a valid username (e.g., if the user tyops and misspells a # if it's not a valid username (e.g., if the user tyops and misspells a
# username), it may be nice not to clobber the user's herald. # username), it may be nice not to clobber the user's herald.
def add(self, irc, msg, args, channel, user, herald): def add(self, irc, msg, args, channel, user, herald):
"""[<channel>] <user|nick|hostmask> <msg> """[<channel>] <user|nick> <msg>
Sets the herald message for <user> (or the user <nick|hostmask> is Sets the herald message for <user> (or the user <nick|hostmask> is
currently identified or recognized as) to <msg>. <channel> is only currently identified or recognized as) to <msg>. <channel> is only
@ -205,7 +205,7 @@ class Herald(callbacks.Privmsg):
add = wrap(add, ['channel', 'otherUser', 'text']) add = wrap(add, ['channel', 'otherUser', 'text'])
def remove(self, irc, msg, args, channel, user): def remove(self, irc, msg, args, channel, user):
"""[<channel>] [<user|nick|hostmask>] """[<channel>] [<user|nick>]
Removes the herald message set for <user>, or the user Removes the herald message set for <user>, or the user
<nick|hostmask> is currently identified or recognized as. If <user> <nick|hostmask> is currently identified or recognized as. If <user>
@ -221,7 +221,7 @@ class Herald(callbacks.Privmsg):
remove = wrap(remove, ['channel', first('otherUser', 'user')]) remove = wrap(remove, ['channel', first('otherUser', 'user')])
def change(self, irc, msg, args, channel, user, changer): def change(self, irc, msg, args, channel, user, changer):
"""[<channel>] [<user|nick|hostmask>] <regexp> """[<channel>] [<user|nick>] <regexp>
Changes the herald message for <user>, or the user <nick|hostmask> is Changes the herald message for <user>, or the user <nick|hostmask> is
currently identified or recognized as, according to <regexp>. If currently identified or recognized as, according to <regexp>. If