mirror of
https://github.com/anope/anope.git
synced 2026-06-29 15:16:37 +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:
parent
8114b5be04
commit
bb9c7b1c7b
@@ -76,6 +76,10 @@ Provided by Anope Dev. <dev@anope.org> - 2004
|
||||
11/19 F Wrong string and missing registered nick check in bot change. [#221]
|
||||
11/16 F NickTracking could allow usage of forbidden nick in some cases. [ #00]
|
||||
|
||||
Provided by DrStein <gacevedo@anope.org> - 2005
|
||||
01/03 F Duplicated TOPIC sent, when TOPICLOCK is ON. [#265]
|
||||
01/03 F If SYMBIOSIS ON, BotServ's bot should be the topic setter. [#265]
|
||||
|
||||
Provided by DrStein <gacevedo@anope.org> - 2004
|
||||
12/23 A NS STATUS will return your status if no nickname is given. [ #00]
|
||||
12/26 F Error message during SQL init even if UseRDB was disabled. [ #00]
|
||||
|
||||
+14
-6
@@ -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) {
|
||||
|
||||
+5
-1
@@ -8,10 +8,14 @@
|
||||
VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="6"
|
||||
VERSION_BUILD="519"
|
||||
VERSION_BUILD="520"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.6 (520)
|
||||
# BUGS : 265
|
||||
# NOTES : Fixed a few issues with chanserv, botserv, symbiosis, and topics
|
||||
#
|
||||
# BUILD : 1.7.6 (519)
|
||||
# BUGS : N/A
|
||||
# NOTES : Ultimate3 bug fixes, they have NICKIP, and some channel modes were defined the same causing problems
|
||||
|
||||
Reference in New Issue
Block a user