From 94429dba9293388fcd904a7dc6d9255b410528c2 Mon Sep 17 00:00:00 2001 From: "trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 4 Dec 2004 04:54:14 +0000 Subject: BUILD : 1.7.6 (473) BUGS : N/A NOTES : In some cases if you set TOPICLOCK on the channel before it ever got a TOPIC, then attempted to set a TOPIC, services would try to set a maliformed TOPIC message to the ircd. git-svn-id: svn://svn.anope.org/anope/trunk@473 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@327 5417fbe8-f217-4b02-8779-1006273d7864 --- src/chanserv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/chanserv.c b/src/chanserv.c index feda36356..a4edae96e 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -2729,6 +2729,9 @@ static int do_register(User * u) ci->last_topic = sstrdup(c->topic); strscpy(ci->last_topic_setter, c->topic_setter, NICKMAX); ci->last_topic_time = c->topic_time; + } else { + /* Set this to something, otherwise it will maliform the topic */ + strscpy(ci->last_topic_setter, s_ChanServ, NICKMAX); } ci->bi = NULL; ci->botflags = BSDefFlags; -- cgit