diff --git a/plugins/Herald.py b/plugins/Herald.py index cdf8dbfe5..a5d3e2cf7 100644 --- a/plugins/Herald.py +++ b/plugins/Herald.py @@ -124,6 +124,26 @@ class Herald(callbacks.Privmsg): raise KeyError return id + def get(self, irc, msg, args): + """[] + + Returns the current herald message for (or the user + is currently identified or recognized as). + is only necessary if the message isn't sent in the channel itself. + """ + channel = privmsgs.getChannel(msg, args) + userNickHostmask = privmsgs.getArgs(args) + try: + id = self._getId(irc, userNickHostmask) + except KeyError: + irc.errorNoUser() + return + try: + herald = self.db[channel, id] + irc.reply(herald) + except KeyError: + irc.error('I have no herald for that user.') + def add(self, irc, msg, args): """[]