mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 20:22:45 +01:00
Added some informational logging.
This commit is contained in:
parent
7accc317a7
commit
8cbcb2e225
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user