浏览代码

fix missing command variable

James Seward 16 年之前
父节点
当前提交
f5d02fdf36
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      QuoteEngine/QuoteEngine.tcl

+ 5 - 0
QuoteEngine/QuoteEngine.tcl

@@ -353,6 +353,11 @@ proc quote_search { nick host handle channel text } {
         puthelp "${command}Plus $remaining other matches"
       }
     } else {
+			if {$count < $quote_chanmax} {
+				set command "PRIVMSG $channel :"
+			} else {
+				set command "PRIVMSG $nick :"
+			}
       if {$count == 1} {
         puthelp "${command}(All of 1 match)"
       } else {