diff options
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r-- | lib/rbot/ircbot.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index e82a1c98..ea9b46ad 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -529,9 +529,9 @@ class IrcBot # send a notice message to channel/nick +where+ def notice(where, message, mchan=nil, mring=-1) if mchan == "" - chan = mchan - else chan = where + else + chan = mchan end if mring < 0 if where =~ /^#/ @@ -552,9 +552,9 @@ class IrcBot # say something (PRIVMSG) to channel/nick +where+ def say(where, message, mchan="", mring=-1) if mchan == "" - chan = mchan - else chan = where + else + chan = mchan end if mring < 0 if where =~ /^#/ @@ -577,9 +577,9 @@ class IrcBot # perform a CTCP action with message +message+ to channel/nick +where+ def action(where, message, mchan="", mring=-1) if mchan == "" - chan = mchan - else chan = where + else + chan = mchan end if mring < 0 if where =~ /^#/ |