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

# BUILD : 1.7.14 (1089) # BUGS : 549 # NOTES : applied trystan's patch for the SJOIN issue.

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


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@813 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b
2006-07-15 10:29:34 +00:00
parent 94e1160fcf
commit 339e175f44
8 changed files with 39 additions and 2 deletions
+1
View File
@@ -53,6 +53,7 @@ Provided by Trystan <trystan@nomadirc.net> - 2006
06/15 F NS Resend delay. [ #00]
07/02 F Fixed module version stuff. [#531]
07/14 F Another version fix. [#545]
07/15 F Fixed max param count for SJOINs. [#549]
07/14 A Added anope_cmd_action() and new param for EVENT_PART_CHANNEL. [#550]
Anope Version 1.7.14
+2
View File
@@ -746,6 +746,7 @@ E int nofork;
E int forceload;
E int nothird;
E int noexpire;
E int protocoldebug;
#ifdef USE_RDB
E int do_mysql;
@@ -810,6 +811,7 @@ E int match_wild_nocase(const char *pattern, const char *str);
E int dotime(const char *s);
E char *duration(NickAlias * na, char *buf, int bufsize, time_t seconds);
E char *expire_left(NickAlias * na, char *buf, int len, time_t expires);
E void protocol_debug(char *source, char *cmd, int argc, char **argv);
typedef int (*range_callback_t) (User * u, int num, va_list args);
E int process_numlist(const char *numstr, int *count_ret,
+1 -1
View File
@@ -747,7 +747,7 @@ void do_sjoin(const char *source, int ac, char **av)
}
/* Double check to avoid unknown modes that need parameters */
if (ac >= 4 && ac <= 6) {
if (ac >= 4) {
c = findchan(av[1]);
if (ircd->chansqline) {
if (!c)
+2
View File
@@ -323,6 +323,8 @@ static int parse_options(int ac, char **av)
forceload = 1;
} else if (strcmp(s, "nothird") == 0) {
nothird = 1;
} else if (strcmp(s, "protocoldebug") == 0) {
protocoldebug = 1;
} else if (strcmp(s, "support") == 0) {
nofork = 1;
debug++;
+1
View File
@@ -44,6 +44,7 @@ int nofork = 0; /* -nofork */
int forceload = 0; /* -forceload */
int nothird = 0; /* -nothrid */
int noexpire = 0; /* -noexpire */
int protocoldebug = 0; /* -protocoldebug */
#ifdef USE_RDB
int do_mysql = 0; /* use mysql ? */
+22
View File
@@ -751,6 +751,28 @@ char *myStrSubString(const char *src, int start, int end)
/*************************************************************************/
void protocol_debug(char *source, char *cmd, int argc, char **argv)
{
int i;
if (protocoldebug) {
if (source)
alog("debug: Source %s", source);
if (cmd)
alog("debug: Token %s", cmd);
if (argc) {
for (i = 0; i < argc; i++) {
alog("debug: av[%d] = %s", i, argv[i]);
}
} else {
alog("debug: av[0] = NULL");
}
}
return;
}
/*************************************************************************/
/**
* Clean up the buffer for extra spaces
* @param str to clean up
+5
View File
@@ -232,6 +232,11 @@ void process()
s = buf + strlen(buf);
strscpy(cmd, buf, sizeof(cmd));
ac = split_buf(s, &av, 1);
if (protocoldebug) {
protocol_debug(source, cmd, ac, av);
}
if (mod_current_buffer) {
free(mod_current_buffer);
}
+5 -1
View File
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="14"
VERSION_EXTRA=""
VERSION_BUILD="1088"
VERSION_BUILD="1089"
# $Log$
#
# BUILD : 1.7.14 (1089)
# BUGS : 549
# NOTES : applied trystan's patch for the SJOIN issue.
#
# BUILD : 1.7.14 (1088)
# BUGS :
# NOTES : applied trystan's patch for 491.