~mdw
/
ircbot
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfixes. tellme cmd
[ircbot]
/
irccore.tcl
diff --git
a/irccore.tcl
b/irccore.tcl
index
22544df
..
069743e
100644
(file)
--- a/
irccore.tcl
+++ b/
irccore.tcl
@@
-140,6
+140,10
@@
proc sendout {command args} { eval sendout_priority [list 0 $command] $args }
proc log {data} {
puts $data
}
proc log {data} {
puts $data
}
+
+proc log_intern {what data} {
+ puts "[clock seconds] ++ $what $data"
+}
proc logerror {data} {
log $data
proc logerror {data} {
log $data
@@
-212,9
+216,17
@@
proc onread {args} {
}
}
}
}
+proc catch_restoreei {body} {
+ global errorInfo errorCode
+ set l [list $errorInfo $errorCode]
+ catch { uplevel 1 $body }
+ manyset $l errorInfo errorCode
+}
+
proc catch_logged {body} {
proc catch_logged {body} {
+ global errorInfo
if {[catch { uplevel 1 $body } emsg]} {
if {[catch { uplevel 1 $body } emsg]} {
- logerror "error (catch_logged): $emsg"
+ logerror "error (catch_logged): $emsg
\n $errorInfo
"
}
}
}
}