diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-08-06 22:47:28 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-08-06 22:47:28 +0000 |
commit | e886694cb1e97a8dccc1b3de3193e0db4e26cc82 (patch) | |
tree | 929886df81e769aa53761d12ee86e92f89bf9c16 /lib/rbot | |
parent | e959d056e9ac9fdf64b7d719a05f29290b7e37a9 (diff) |
The kernel now has a @bot.kick(channel, user, msg) method
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/ircbot.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |