chiark / gitweb /
Add missing ucmdr {} {}
[ircbot] / bot.tcl
diff --git a/bot.tcl b/bot.tcl
index 0f75e1b64a8389151af7343f661a1fd0b9e29f8e..4ec949dfcef980787ba6b6b23947e4533174bef5 100755 (executable)
--- a/bot.tcl
+++ b/bot.tcl
@@ -233,7 +233,9 @@ proc tell_event_core {nl event} {
        log_intern "tell event error" "$emsg >$errorInfo<"
        set emsg ERROR
     } else {
-       log_intern "tell event" "done $tell_event_teventi $emsg"
+       if {"$emsg" != "nomsgs"} {
+           log_intern "tell event" "done $tell_event_teventi $emsg"
+       }
     }
     return $emsg
 }
@@ -1145,11 +1147,13 @@ proc channelmgr_monoop {} {
 def_ucmd op {
     channelmgr_monoop
     sendout MODE $target +o $n
+    ucmdr {} {}
 }
 
 def_ucmd leave {
     channelmgr_monoop
     doleave $target
+    ucmdr {} {}
 }
 
 def_ucmd invite {
@@ -1328,7 +1332,7 @@ proc tell_delete_msgs {lsenders lrecip} {
 def_ucmd untell {
     prefix_nick
     check_notonchan
-    nick_securitycheck 0
+    if {[nickdb_exists $n]} { nick_securitycheck 0 }
     set recipients [tell_peernicks $text]
     if {![llength $recipients]} {
        usererror "You must say which recipients' messages from you to forget."
@@ -1884,6 +1888,7 @@ def_ucmd kill {
     set reason "at request of user $nu"
     if {[ta_anymore]} { append reason "; $text" }
     sendout KILL $target $reason
+    ucmdr {} {}
 }
 
 def_ucmd summon {