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 --- archivebot-chat.tcl | 2 +- down-the-tube-chat.tcl | 2 +- telegrab-chat.tcl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/archivebot-chat.tcl b/archivebot-chat.tcl index 4affa8f..b664a3c 100644 --- a/archivebot-chat.tcl +++ b/archivebot-chat.tcl @@ -1,7 +1,7 @@ bind pubm * "#archivebot *" abc-privmsg proc abc-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])} { diff --git a/down-the-tube-chat.tcl b/down-the-tube-chat.tcl index 4efbe7c..61fd490 100644 --- a/down-the-tube-chat.tcl +++ b/down-the-tube-chat.tcl @@ -1,7 +1,7 @@ bind pubm * "#down-the-tube *" dtt-privmsg proc dtt-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])} { 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