1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 09:43:13 +02:00

BUILD : 1.7.6 (520) BUGS : 265 NOTES : Fixed a few issues with chanserv, botserv, symbiosis, and topics

git-svn-id: svn://svn.anope.org/anope/trunk@520 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@374 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2005-01-04 16:21:15 +00:00
parent 8114b5be04
commit bb9c7b1c7b
3 changed files with 23 additions and 7 deletions
+14 -6
View File
@@ -1751,13 +1751,13 @@ void restore_topic(char *chan)
return;
if (c->topic)
free(c->topic);
if (ci->last_topic) {
if ((ci->last_topic) && !(ci->flags & CI_TOPICLOCK)) {
c->topic = sstrdup(ci->last_topic);
strscpy(c->topic_setter, ci->last_topic_setter, NICKMAX);
c->topic_time = ci->last_topic_time;
} else {
c->topic = NULL;
strscpy(c->topic_setter, s_ChanServ, NICKMAX);
strscpy(c->topic_setter, whosends(ci), NICKMAX);
}
if (ircd->join2set) {
if (whosends(ci) == s_ChanServ) {
@@ -1795,12 +1795,16 @@ int check_topiclock(Channel * c, time_t topic_time)
if (c->topic)
free(c->topic);
if (ci->last_topic)
if (ci->last_topic) {
c->topic = sstrdup(ci->last_topic);
else
strscpy(c->topic_setter, ci->last_topic_setter, NICKMAX);
} else {
c->topic = NULL;
/* Bot assigned & Symbiosis ON?, the bot will set the topic - doc */
/* Altough whosends() also checks for BSMinUsers -GD */
strscpy(c->topic_setter, whosends(ci), NICKMAX);
}
strscpy(c->topic_setter, ci->last_topic_setter, NICKMAX);
if (ircd->topictsforward) {
/* Because older timestamps are rejected */
/* Some how the topic_time from do_topic is 0 set it to current + 1 */
@@ -1810,7 +1814,11 @@ int check_topiclock(Channel * c, time_t topic_time)
c->topic_time = topic_time + 1;
}
} else {
c->topic_time = ci->last_topic_time;
/* If no last topic, we can't use last topic time! - doc */
if (ci->last_topic)
c->topic_time = ci->last_topic_time;
else
c->topic_time = time(NULL) + 1;
}
if (ircd->join2set) {