From e3df6333f28f5e221677a620472a5f5c0b3c1263 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Tue, 22 Oct 2024 23:20:57 -0600 Subject: exclamation marks by themselves arent commands --- telegrab-chat.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'telegrab-chat.tcl') diff --git a/telegrab-chat.tcl b/telegrab-chat.tcl index b99dfcf..f48ecad 100644 --- a/telegrab-chat.tcl +++ b/telegrab-chat.tcl @@ -1,7 +1,7 @@ bind pubm * "#telegrab *" telegrab-privmsg proc telegrab-privmsg {nick uhost hand chan text} { - if {([string index $text 0] == "!") && ([string index $text 1] != " ")} { + if {([string index $text 0] == "!") && (([string index $text 1] != " ") && ([string length $text] != "1"))} { return 0 } if {([string match "*@archiveteam/Aramaki" $uhost]) || ([string match "*@hackint/user/h2ibot" $uhost])} { -- cgit v1.3.1-10-gc9f91