summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-11 16:52:26 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-11 16:52:26 +0000
commitc20651123433d3dc99a53a83bbeb128c5968ffc6 (patch)
tree791fe45ee7a1bd661e62584d06390155181ae27a /lib/rbot
parent41b34863e2064ff7e04c5886277da21abb52e349 (diff)
nickokay now properly selected
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/message.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb
index f1293e78..521d62dc 100644
--- a/lib/rbot/message.rb
+++ b/lib/rbot/message.rb
@@ -267,7 +267,10 @@ module Irc
# the default okay style is the same as the default reply style
#
def okay
- self.reply @bot.lang.get("okay")
+ if @bot.config['core.reply_with_nick']
+ return nickokay
+ end
+ plainokay
end
end