]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/message.rb
Better flood control
[user/henk/code/ruby/rbot.git] / lib / rbot / message.rb
index f1293e787a1d1e4878f7945e34a083228fed3e6c..521d62dcba703139eb8ff253c328f8bd1b7678bd 100644 (file)
@@ -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