mirror of
https://github.com/anope/anope.git
synced 2026-07-06 21:23:13 +02:00
BUILD : 1.7.5 (378) BUGS : N/A NOTES : News reodering - DrStein, TSMODE issues - TSL, NULL crash fixes - TSL
git-svn-id: svn://svn.anope.org/anope/trunk@378 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@248 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
1d34d1f8fe
commit
048ddbeb2f
@@ -26,6 +26,7 @@ Provided by Trystan <trystan@nomadirc.net> - 2004
|
||||
09/07 A Ircd CHANMODE now trapped and stored. [ #00]
|
||||
08/23 A New protocol independent design (aka anope-capab). [ #00]
|
||||
08/28 A New IRCD document for adding new ircd support to new design. [ #00]
|
||||
10/07 F Fixed TSMODE ircds that don't stay this in their CAPABA [ #00]
|
||||
10/05 F Cleaned up how OS/CS CLEAR MODES works [ #00]
|
||||
09/27 F Verbose message for vident. [#173]
|
||||
09/27 F Check and trap for forbidden nicks on HS. [#172]
|
||||
@@ -48,6 +49,7 @@ Provided by Trystan <trystan@nomadirc.net> - 2004
|
||||
Provided by DrStein <gacevedo@anope.org> - 2004
|
||||
10/05 A CS/NS INFO shows the expire time. [ #00]
|
||||
10/05 A NS GLIST shows the expire time. [ #00]
|
||||
10/07 F NEWS reordering issue [ #00]
|
||||
10/05 F NS GLIST allows the owner of the nick to use the nickname param. [ #00]
|
||||
09/17 F Fixed MySQL error, whereby checks are only done if mysql is on. [ #00]
|
||||
09/14 F Fixed /os MODE by joining nested ifs into one. [ #00]
|
||||
|
||||
@@ -26,6 +26,7 @@ E IRCDVar ircd[];
|
||||
E IRCDCAPAB ircdcap[];
|
||||
E const char flood_mode_char_set[];
|
||||
E const char flood_mode_char_remove[];
|
||||
E int UseTSMODE; /* hack to get around bahamut clones that don't send TSMODE */
|
||||
|
||||
/**** actions.c ****/
|
||||
|
||||
|
||||
@@ -24,6 +24,10 @@ void bad_password(User * u)
|
||||
{
|
||||
time_t now = time(NULL);
|
||||
|
||||
if (!u) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!BadPassLimit)
|
||||
return;
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ const char version_protocol[] = "BahamutIRCd 1.4.*/1.8.*";
|
||||
/* Not all ircds use +f for their flood/join throttle system */
|
||||
const char flood_mode_char_set[] = "+j"; /* mode char for FLOOD mode on set */
|
||||
const char flood_mode_char_remove[] = "-j"; /* mode char for FLOOD mode on remove */
|
||||
int UseTSMODE = 0; /* does send TSMODE but if it doesn't means it won't so this is disabled */
|
||||
|
||||
IRCDVar ircd[] = {
|
||||
{"BahamutIRCd 1.4.*/1.8.*", /* ircd name */
|
||||
|
||||
+2
-1
@@ -866,7 +866,8 @@ void do_cmode(const char *source, int ac, char **av)
|
||||
|
||||
if (ircdcap->tsmode) {
|
||||
/* TSMODE for bahamut - leave this code out to break MODEs. -GD */
|
||||
if (uplink_capab & ircdcap->tsmode) {
|
||||
/* if they don't send it in CAPAB check if we just want to enable it */
|
||||
if (uplink_capab & ircdcap->tsmode || UseTSMODE) {
|
||||
for (i = 0; i < strlen(av[1]); i++) {
|
||||
if (!isdigit(av[1][i]))
|
||||
break;
|
||||
|
||||
@@ -21,6 +21,7 @@ const char version_protocol[] = "DreamForge 4.6.7";
|
||||
/* Not all ircds use +f for their flood/join throttle system */
|
||||
const char flood_mode_char_set[] = ""; /* mode char for FLOOD mode on set */
|
||||
const char flood_mode_char_remove[] = ""; /* mode char for FLOOD mode on remove */
|
||||
int UseTSMODE = 0;
|
||||
|
||||
IRCDVar ircd[] = {
|
||||
{"DreamForge 4.6.7", /* ircd name */
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ const char version_protocol[] = "Hybrid IRCd 7.0";
|
||||
/* Not all ircds use +f for their flood/join throttle system */
|
||||
const char flood_mode_char_set[] = ""; /* mode char for FLOOD mode on set */
|
||||
const char flood_mode_char_remove[] = ""; /* mode char for FLOOD mode on remove */
|
||||
|
||||
int UseTSMODE = 0;
|
||||
|
||||
IRCDVar ircd[] = {
|
||||
{"HybridIRCd 7.*", /* ircd name */
|
||||
|
||||
@@ -112,6 +112,10 @@ int m_privmsg(char *source, char *receiver, char *msg)
|
||||
ChannelInfo *ci;
|
||||
User *u;
|
||||
|
||||
if (!source || !*source) {
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
u = finduser(source);
|
||||
|
||||
if (!u) {
|
||||
|
||||
+6
-3
@@ -1,4 +1,4 @@
|
||||
|
||||
/* News functions.
|
||||
/* News functions.
|
||||
*
|
||||
* (C) 2003 Anope Team
|
||||
@@ -496,8 +496,10 @@ static void do_news_del(User * u, int16 type, int *msgs,
|
||||
if (num > 0 && del_newsitem(num, type)) {
|
||||
notice_lang(s_OperServ, u, msgs[MSG_DELETED], num);
|
||||
/* Reset the order - #0000397 */
|
||||
for (i = 0; i < nnews; i++)
|
||||
news[i].num = i + 1;
|
||||
for (i = 0; i < nnews; i++) {
|
||||
if ((news[i].type == type) && (news[i].num > num))
|
||||
news[i].num--;
|
||||
}
|
||||
} else
|
||||
notice_lang(s_OperServ, u, msgs[MSG_DEL_NOT_FOUND], num);
|
||||
} else {
|
||||
@@ -537,3 +539,4 @@ static int del_newsitem(int num, short type)
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
| ||||