Sfoglia il codice sorgente

fix missing command variable

James Seward 16 anni fa
parent
commit
f5d02fdf36
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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 {