mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
relay: log chandesc changes to INFO
This commit is contained in:
parent
77fd9475b6
commit
76b58c4432
@ -2903,10 +2903,14 @@ def chandesc(irc, source, args):
|
||||
permissions.check_permissions(irc, source, ['relay.chandesc.remove'])
|
||||
|
||||
db[relay]['description'] = ''
|
||||
log.info('(%s) %s cleared the description for %s', irc.name, irc.get_hostmask(source), channel)
|
||||
irc.reply('Done. Cleared the description for \x02%s\x02.' % channel)
|
||||
else:
|
||||
permissions.check_permissions(irc, source, ['relay.chandesc.set'])
|
||||
db[relay]['description'] = ' '.join(args[1:])
|
||||
|
||||
db[relay]['description'] = newdesc = ' '.join(args[1:])
|
||||
log.info('(%s) %s set the description for %s to: %s', irc.name, irc.get_hostmask(source),
|
||||
channel, newdesc)
|
||||
irc.reply('Done. Updated the description for \x02%s\x02.' % channel)
|
||||
else:
|
||||
irc.reply('Description for \x02%s\x02: %s' % (channel, db[relay].get('description') or '\x1D(none)\x1D'))
|
||||
|
Loading…
Reference in New Issue
Block a user