diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-26 21:35:19 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-26 21:35:19 +0200 |
commit | f01977130a8d23d8806c3087cbbb54ea4a9e0431 (patch) | |
tree | 198c76513498bdc5833008383aed139588d59814 /lib/rbot | |
parent | 70b4f887a4fdab8dc4a89029bb841a0eb103ffef (diff) |
ircbot.rb: make #mode()'s third argument optional
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/ircbot.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |