Explorar el Código

fix missing command variable

James Seward hace 16 años
padre
commit
f5d02fdf36
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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 {