Explorar o código

output if no result from search

horgh %!s(int64=16) %!d(string=hai) anos
pai
achega
ecff725400
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      bash.tcl

+ 4 - 0
bash.tcl

@@ -44,6 +44,10 @@ namespace eval bash {
 }
 
 proc bash::quote_output {chan quote} {
+	if {$quote == ""} {
+		$bash::output_cmd "PRIVMSG $chan :No result!"
+		return
+	}
 	set number [dict get $quote number]
 	set rating [dict get $quote rating]
 	set quote [htmlparse::mapEscapes [dict get $quote quote]]