]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
ircbot.rb: make #mode()'s third argument optional
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 26 Jun 2008 19:35:19 +0000 (21:35 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 26 Jun 2008 19:35:19 +0000 (21:35 +0200)
lib/rbot/ircbot.rb

index 3cd41d2e62512ebb42441015777ec2df5950a5b0..8be9cb5ff5b656d1e513fc1af8d746c3ce31eaba 100644 (file)
@@ -1184,7 +1184,7 @@ class Bot
   end
 
   # changing mode
-  def mode(channel, mode, target)
+  def mode(channel, mode, target=nil)
     sendq "MODE #{channel} #{mode} #{target}", channel, 2
   end