diff options
author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-04 04:54:14 +0000 |
---|---|---|
committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-04 04:54:14 +0000 |
commit | 94429dba9293388fcd904a7dc6d9255b410528c2 (patch) | |
tree | becaee7dfcdc84c35700600df24f9e1684e44f34 /src | |
parent | 8a5b74dfcc14382a13858e69f47e98e26e59a8fe (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/chanserv.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |