From 36eb3907ec449e50de7ffecfd1b28cc15af4cb15 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Fri, 11 Oct 2013 22:52:46 +0300 Subject: [PATCH] Discouraged using #ls-trusted on a channel --- botcmd.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/botcmd.py b/botcmd.py index 534dc19..d518971 100644 --- a/botcmd.py +++ b/botcmd.py @@ -159,7 +159,10 @@ def parse((line,irc)): irc.send('PRIVMSG %s :Usage #trust nick'%chan) elif line[3]==':#ls-trusted': trustedlock.acquire() - irc.send('PRIVMSG %s :%s'%(chan,', '.join(trusted))) + if chan!=nick: + irc.send('KICK %s %s :Just don\'t'%(chan,nick)) + else: + irc.send('PRIVMSG %s :%s'%(chan,', '.join(trusted))) trustedlock.release() elif line[3]==':#help': irc.send('PRIVMSG %s :%s'%(chan,help(' '.join(line[4:])))) @@ -255,7 +258,7 @@ def help(cmd): elif cmd=='#untrust': return '#untrust nick remove nick from trusted list' elif cmd=='#ls-trusted': - return '#lt-trusted list nicks that are trusted' + return '#lt-trusted list nicks that are trusted. use only in a query' elif cmd=='#help': return '#help [command] give short info of command or list commands' else: