1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 04:06:41 +02:00

# BUILD : 1.7.14 (1087) # BUGS : 545 550 541 # NOTES : Various fixes.

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


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@811 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b
2006-07-14 17:38:00 +00:00
parent 18c0fe03fc
commit cc34de2be6
8 changed files with 47 additions and 17 deletions
+3
View File
@@ -43,6 +43,7 @@ Provided by Anope Dev. <dev@anope.org> - 2006
06/26 F A few small bugs with module configure scripts. [ #00]
07/02 F Fixed readonly stuff on memoserv del. [#529]
07/13 F Fixed socket buffering, hopefully should make inspircd play nice. [ #00]
07/14 F Removed old HAS_RTLD_LOCAL check. [#541]
Provided by ThaPrince <jon@vile.com> - 2006
05/19 A Plexus 3 support. [ #00]
@@ -51,6 +52,8 @@ Provided by ThaPrince <jon@vile.com> - 2006
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/14 A Added anope_cmd_action() and new param for EVENT_PART_CHANNEL. [#550]
Anope Version 1.7.14
--------------------
+2
View File
@@ -350,6 +350,8 @@ Anope Internal Events
this has been done.
av[1] The nickname of the user parting the channel.
av[2] The name of the channel the user has parted.
av[3] The reason the user parted the channel, this is not always sent
so check the count to make sure it was passed. (ac == 4)
EVENT_RELOAD
This event is emitted after the configuration file has been reloaded.
+1
View File
@@ -1212,6 +1212,7 @@ E void anope_cmd_part(char *nick, char *chan, const char *fmt, ...); /* P
E void anope_cmd_pass(char *pass); /* PASS */
E void anope_cmd_pong(char *servname, char *who); /* PONG */
E void anope_cmd_privmsg(char *source, char *dest, const char *fmt, ...); /* PRIVMSG */
E void anope_cmd_action(char *source, char *dest, const char *fmt, ...); /* PRIVMSG */
E void anope_cmd_privmsg2(char *source, char *dest, char *msg); /* PRIVMSG */
E void anope_cmd_serv_privmsg(char *source, char *dest, char *msg); /* PRIVMSG */
E void anope_cmd_protoctl(); /* PROTOCTL */
-4
View File
@@ -32,11 +32,7 @@ typedef HMODULE ano_module_t;
#else
typedef void * ano_module_t;
#ifdef HAS_RTLD_LOCAL
#define ano_modopen(file) dlopen(file, RTLD_LAZY|RTLD_LOCAL)
#else
#define ano_modopen(file) dlopen(file, RTLD_LAZY)
#endif
#define ano_moderr() dlerror()
#define ano_modsym(file, symbol) dlsym(file, DL_PREFIX symbol)
#define ano_modclose(file) dlclose(file)
+4 -4
View File
@@ -670,8 +670,8 @@ void do_part(const char *source, int ac, char **av)
return;
}
channame = sstrdup(c->chan->name);
send_event(EVENT_PART_CHANNEL, 3, EVENT_START, user->nick,
channame);
send_event(EVENT_PART_CHANNEL, (ac >= 2 ? 4 : 3), EVENT_START, user->nick,
channame, (ac >= 2 ? av[1] : ""));
chan_deluser(user, c->chan);
if (c->next)
@@ -682,8 +682,8 @@ void do_part(const char *source, int ac, char **av)
user->chans = c->next;
free(c);
send_event(EVENT_PART_CHANNEL, 3, EVENT_STOP, user->nick,
channame);
send_event(EVENT_PART_CHANNEL, (ac >= 2 ? 4 : 3), EVENT_STOP, user->nick,
channame, (ac >= 2 ? av[1] : ""));
free(channame);
}
}
+25
View File
@@ -254,6 +254,31 @@ void anope_cmd_notice2(char *source, char *dest, char *msg)
ircdproto.ircd_cmd_notice2(source, dest, msg);
}
void anope_cmd_action(char *source, char *dest, const char *fmt, ...)
{
va_list args;
char buf[BUFSIZE];
char actionbuf[BUFSIZE];
*buf = '\0';
*actionbuf = '\0';
if (fmt) {
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
} else {
return;
}
if (!buf) {
return;
}
snprintf(actionbuf, BUFSIZE - 1, "%cACTION %s %c", 1, buf, 1);
ircdproto.ircd_cmd_privmsg(source, dest, actionbuf);
}
void anope_cmd_privmsg(char *source, char *dest, const char *fmt, ...)
{
va_list args;
+6 -6
View File
@@ -584,17 +584,17 @@ int loadModule(Module * m, User * u)
return MOD_ERR_NOLOAD;
}
if (func) {
version = (int (*)())ano_modsym(m->handle,"getAnopeBuildVersion");
version = (int (*)())ano_modsym(m->handle,"getAnopeBuildVersion");
if (version) {
if (version() >= VERSION_BUILD ) {
if(debug) {
alog("Module %s compiled against current or newer anope revision %d, this is %d",m->name,version(),VERSION_BUILD);
alog("Module %s compiled against current or newer anope revision %d, this is %d",m->name,version(),VERSION_BUILD);
}
} else {
ano_modclose(m->handle);
} else {
alog("Module %s is compiled against an old version of anope (%d) current is %d", m->name, version(), VERSION_BUILD);
alog("Rebuild module %s against the current version to resolve this error", m->name);
ano_modclose(m->handle);
ano_modclearerr();
alog("Module %s is compiled against an old version of anope (%d) current is %d", m->name, version(), VERSION_BUILD);
alog("Rebuild module %s against the current version to resolve this error", m->name);
return MOD_ERR_NOLOAD;
}
} else {
+6 -3
View File
@@ -9,20 +9,23 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="14"
VERSION_EXTRA=""
VERSION_BUILD="1086"
VERSION_BUILD="1087"
# $Log$
#
# BUILD : 1.7.14 (1087)
# BUGS : 545 550 541
# NOTES : Various fixes.
#
# BUILD : 1.7.14 (1086)
# BUGS : N/A
# NOTES : Applied gds socket buffering patch, we should play nice with inspircd now.
#
#
# BUILD : 1.7.14 (1085)
# BUGS : 544
# NOTES : Applied Heinzy-mcHeinzs documentation update
#
#
# BUILD : 1.7.14 (1084)
# BUGS : N/A
# NOTES : Added ns_noop_convert.c