From 3ccf2f6e53fb67acf3092b39a65da722d49ff347 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 5 Feb 2008 13:51:50 +0000 Subject: BUILD : 1.7.21 (1369) BUGS : 685 NOTES : Fixed some small compiler warnings about buffer addresses always evaluating to true git-svn-id: svn://svn.anope.org/anope/trunk@1369 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1084 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/cs_appendtopic.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/modules') diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c index f055e4a38..7e0d27bb4 100644 --- a/src/modules/cs_appendtopic.c +++ b/src/modules/cs_appendtopic.c @@ -129,13 +129,13 @@ int my_cs_appendtopic(User * u) strscpy(topic, newtopic, sizeof(topic)); } - ci->last_topic = topic ? sstrdup(topic) : NULL; + ci->last_topic = *topic ? sstrdup(topic) : NULL; strscpy(ci->last_topic_setter, u->nick, NICKMAX); ci->last_topic_time = time(NULL); if (c->topic) free(c->topic); - c->topic = topic ? sstrdup(topic) : NULL; + c->topic = *topic ? sstrdup(topic) : NULL; strscpy(c->topic_setter, u->nick, NICKMAX); if (ircd->topictsbackward) c->topic_time = c->topic_time - 1; @@ -151,8 +151,7 @@ int my_cs_appendtopic(User * u) anope_cmd_mode(NULL, c->name, "+o %s", s_ChanServ); } } - anope_cmd_topic(whosends(ci), c->name, u->nick, topic ? topic : "", - c->topic_time); + anope_cmd_topic(whosends(ci), c->name, u->nick, topic, c->topic_time); if (ircd->join2set) { if (whosends(ci) == s_ChanServ) { anope_cmd_part(s_ChanServ, c->name, NULL); -- cgit