Added some informational logging.

This commit is contained in:
Jeremy Fincher 2003-12-03 21:45:02 +00:00
parent 7accc317a7
commit 8cbcb2e225

View File

@ -256,6 +256,8 @@ class Alias(callbacks.Privmsg):
(name, alias) = privmsgs.getArgs(args, required=2) (name, alias) = privmsgs.getArgs(args, required=2)
try: try:
self.addAlias(irc, name, alias) self.addAlias(irc, name, alias)
self.log.info('Adding alias %r for %r (from %s)' %
(name, alias, msg.prefix))
irc.reply(msg, conf.replySuccess) irc.reply(msg, conf.replySuccess)
except AliasError, e: except AliasError, e:
irc.error(msg, str(e)) irc.error(msg, str(e))
@ -268,6 +270,7 @@ class Alias(callbacks.Privmsg):
name = privmsgs.getArgs(args) name = privmsgs.getArgs(args)
try: try:
self.removeAlias(name) self.removeAlias(name)
self.log.info('Removing alias %r (from %s)' % (name, msg.prefix))
irc.reply(msg, conf.replySuccess) irc.reply(msg, conf.replySuccess)
except AliasError, e: except AliasError, e:
irc.error(msg, str(e)) irc.error(msg, str(e))