From e886694cb1e97a8dccc1b3de3193e0db4e26cc82 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 6 Aug 2006 22:47:28 +0000 Subject: The kernel now has a @bot.kick(channel, user, msg) method --- lib/rbot/ircbot.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 3bfd8b9e..3c2de268 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -883,6 +883,11 @@ class IrcBot sendq "MODE #{channel} #{mode} #{target}", channel, 2 end + # kicking a user + def kick(channel, user, msg) + sendq "KICK #{channel} #{user} :#{msg}", channel, 2 + end + # m:: message asking for help # topic:: optional topic help is requested for # respond to online help requests -- cgit v1.2.3