chiark
/
gitweb
/
~ijackson
/
ircbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e0940d
)
topicedit: handle bgerror by crashing
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 11 Apr 2014 16:11:01 +0000
(17:11 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 11 Apr 2014 16:11:01 +0000
(17:11 +0100)
topicedit.tcl
patch
|
blob
|
history
diff --git
a/topicedit.tcl
b/topicedit.tcl
index cc33c1322eb306b8f3b2fa1d3c09209bdb7c2c25..43ec29f9aa78674147d927fad085baca80061202 100755
(executable)
--- a/
topicedit.tcl
+++ b/
topicedit.tcl
@@
-9,6
+9,12
@@
manyset $argv host port nick ident ownfullname channel topicinfo
set done 0
+proc bgerror {msg} {
+ global errorInfo errorCode
+ puts stderr "$msg\n$errorCode\n$errorInfo\n"
+ exit 16
+}
+
proc connected {} {
global channel
sendout JOIN $channel