Parcourir la source

fix missing command variable

James Seward il y a 16 ans
Parent
commit
f5d02fdf36
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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 {