From a0dceacf242e5e79e5cd6b3d6b2646cb7886d308 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 11 Apr 2014 17:11:08 +0100 Subject: [PATCH] topicedit: add new topic info at front --- topicedit.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/topicedit.tcl b/topicedit.tcl index 43ec29f..9fc4765 100755 --- a/topicedit.tcl +++ b/topicedit.tcl @@ -43,7 +43,8 @@ proc msg_333 {server code us channel setter when} { } proc msg_366 {args} { global oldtopic topicinfo channel done - set newtopic "$oldtopic | $topicinfo" + if {![info exists oldtopic]} return + set newtopic "$topicinfo | $oldtopic" sendout TOPIC $channel $newtopic sendout TOPIC $channel set done 1 -- 2.30.2