Преглед на файлове

output if no result from search

horgh преди 16 години
родител
ревизия
ecff725400
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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]]