aboutsummaryrefslogtreecommitdiff
path: root/archivebot-chat.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'archivebot-chat.tcl')
-rw-r--r--archivebot-chat.tcl2
1 files changed, 1 insertions, 1 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])} {