From f01977130a8d23d8806c3087cbbb54ea4a9e0431 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 26 Jun 2008 21:35:19 +0200 Subject: ircbot.rb: make #mode()'s third argument optional --- lib/rbot/ircbot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 3cd41d2e..8be9cb5f 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -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 -- cgit v1.2.3