diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-21 22:43:07 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-21 22:43:07 +0000 |
commit | a2665e8d667f814af5dffcda2be06947c98e32af (patch) | |
tree | e9bb40433e46e8a2c877590899ea127c3f93da09 /lib/rbot/ircbot.rb | |
parent | dbb8796d624e29e2fb62fe1ca28020f2b75a9a0a (diff) |
Fix private messages not working and default channel names for the message queue
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 =~ /^#/ |