mirror of
https://github.com/anope/anope.git
synced 2026-07-02 09:26:38 +02:00
BUILD : 1.7.5 (418) BUGS : N/A NOTES : 1. Fixed Rage IRCD compiler error, 2. Added hook for Unreal SJOIN +I support, 3. wallops() is back, 4. depricated.h added to help older modules work with the new commands
git-svn-id: svn://svn.anope.org/anope/trunk@418 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@279 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
91e8ac0878
commit
297b11d1a8
@@ -21,6 +21,8 @@ Provided by Anope Dev. <dev@anope.org> - 2004
|
||||
08/24 F Compile error with gcc2. [ #00]
|
||||
|
||||
Provided by Trystan <trystan@nomadirc.net> - 2004
|
||||
10/23 A Added depricated.h, this will allow old mods to work for now [ #00]
|
||||
10/23 A Add hook for SJOIN for Unreal future +I support [ #00]
|
||||
10/06 A Bahamut's channel mode +j (join throttle) [ #00]
|
||||
10/05 A Globalized CS/NS STATUS messages [ #00]
|
||||
10/02 A Added NewsCount as new feature in services.conf [ #00]
|
||||
|
||||
@@ -0,0 +1,127 @@
|
||||
/* depricated.h
|
||||
*
|
||||
* (C) 2003 Anope Team
|
||||
* Contact us at info@anope.org
|
||||
*
|
||||
* Please read COPYING and README for furhter details.
|
||||
*
|
||||
* Based on the original code of Epona by Lara.
|
||||
* Based on the original code of Services by Andy Church.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
All of these functions were replaced in 1.7.6, you should move your modules
|
||||
to use the new functions
|
||||
*/
|
||||
|
||||
#define change_user_mode(u, modes, arg) common_svsmode(u, modes, arg)
|
||||
#define GetIdent(x) common_get_vident(x)
|
||||
#define GetHost(x) common_get_vhost(x)
|
||||
|
||||
#define NEWNICK(nick,user,host,real,modes,qline) \
|
||||
anope_cmd_bot_nick(nick,user,host,real,modes)
|
||||
|
||||
#define s_akill(user, host, who, when, expires, reason) \
|
||||
anope_cmd_akill(user, host, who, when, expires, reason)
|
||||
|
||||
#define set_umode(user, ac, av) anope_set_umode(user, ac, av)
|
||||
|
||||
#define s_svsnoop(server, set) anope_cmd_svsnoop(server, set)
|
||||
|
||||
#define s_sqline(mask, reason) anope_cmd_sqline(mask, reason)
|
||||
|
||||
#define s_sgline(mask, reason) anope_cmd_sgline(mask, reason)
|
||||
#define s_szline(mask, reason) anope_cmd_szline(mask, reason)
|
||||
#define s_unsgline(mask) anope_cmd_unsgline(mask)
|
||||
#define s_unsqline(mask) anope_cmd_unsqline(mask)
|
||||
#define s_unszline(mask) anope_cmd_unszline(mask)
|
||||
|
||||
#define s_rakill(user, host) anope_cmd_remove_akill(user, host)
|
||||
|
||||
|
||||
# define NICKSERV_MODE ircd->nickservmode
|
||||
# define CHANSERV_MODE ircd->chanservmode
|
||||
# define HOSTSERV_MODE ircd->hostservmode
|
||||
# define MEMOSERV_MODE ircd->memoservmode
|
||||
# define BOTSERV_MODE ircd->botservmode
|
||||
# define HELPSERV_MODE ircd->helpservmode
|
||||
# define OPERSERV_MODE ircd->oprservmode
|
||||
# define DEVNULL_MODE ircd->devnullmode
|
||||
# define GLOBAL_MODE ircd->globalmode
|
||||
# define NICKSERV_ALIAS_MODE ircd->nickservaliasmode
|
||||
# define CHANSERV_ALIAS_MODE ircd->chanservaliasmode
|
||||
# define MEMOSERV_ALIAS_MODE ircd->memoservaliasmode
|
||||
# define BOTSERV_ALIAS_MODE ircd->botservaliasmode
|
||||
# define HELPSERV_ALIAS_MODE ircd->helpservaliasmode
|
||||
# define OPERSERV_ALIAS_MODE ircd->operservaliasmode
|
||||
# define DEVNULL_ALIAS_MODE ircd->devnullaliasmode
|
||||
# define GLOBAL_ALIAS_MODE ircd->globalaliasmode
|
||||
# define HOSTSERV_ALIAS_MODE ircd->hostservaliasmode
|
||||
# define BOTSERV_BOTS_MODE ircd->botserv_bot_mode
|
||||
#define CHAN_MAX_SYMBOL ircd->max_symbols
|
||||
#define MODESTOREMOVE ircd->modestoremove
|
||||
|
||||
#ifdef IRC_HYBRID
|
||||
# define HAS_HALFOP
|
||||
# define HAS_EXCEPT
|
||||
#endif
|
||||
|
||||
#ifdef IRC_VIAGRA
|
||||
# define HAS_HALFOP
|
||||
# define HAS_VHOST
|
||||
# define HAS_VIDENT
|
||||
# define HAS_EXCEPT
|
||||
#endif
|
||||
|
||||
#ifdef IRC_BAHAMUT
|
||||
# define HAS_NICKIP
|
||||
# define HAS_EXCEPT
|
||||
# define HAS_SVSHOLD
|
||||
#endif
|
||||
|
||||
#ifdef IRC_RAGE2
|
||||
# define HAS_HALFOP
|
||||
# define HAS_EXCEPT
|
||||
# define HAS_VHOST
|
||||
# define HAS_NICKVHOST
|
||||
#endif
|
||||
|
||||
#ifdef IRC_PTLINK
|
||||
# define HAS_NICKVHOST
|
||||
# define HAS_VHOST
|
||||
# define HAS_FMODE
|
||||
# define HAS_EXCEPT
|
||||
#endif
|
||||
|
||||
#ifdef IRC_ULTIMATE2
|
||||
# define IRC_ULTIMATE /* gotta do this for old mods */
|
||||
# define HAS_FMODE
|
||||
# define HAS_HALFOP
|
||||
# define HAS_LMODE
|
||||
# define HAS_VHOST
|
||||
# define HAS_VIDENT
|
||||
# define HAS_EXCEPT
|
||||
#endif
|
||||
|
||||
#if defined(IRC_UNREAL31) || defined(IRC_UNREAL32)
|
||||
# define IRC_UNREAL /* gotta do this for old mods */
|
||||
# define HAS_FMODE
|
||||
# define HAS_HALFOP
|
||||
# define HAS_LMODE
|
||||
# define HAS_NICKVHOST
|
||||
# define HAS_VHOST
|
||||
# define HAS_VIDENT
|
||||
# define HAS_EXCEPT
|
||||
#endif
|
||||
|
||||
#ifdef IRC_ULTIMATE3
|
||||
# define HAS_HALFOP
|
||||
# define HAS_VHOST
|
||||
# define HAS_NICKVHOST
|
||||
# define HAS_VIDENT
|
||||
# define HAS_EXCEPT
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1091,6 +1091,8 @@ extern int anope_flood_mode_check(char *value);
|
||||
|
||||
extern void anope_cmd_jupe(char *jserver, char *who, char *reason);
|
||||
|
||||
extern void anope_cmd_global_legacy(char *source, char *fmt);
|
||||
extern void wallops(char *source, const char *fmt, ...);
|
||||
|
||||
extern char *common_get_vident(User *u);
|
||||
extern char *common_get_vhost(User *u);
|
||||
|
||||
@@ -1603,5 +1603,11 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
|
||||
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
|
||||
}
|
||||
|
||||
/* GLOBOPS - to handle old WALLOPS */
|
||||
void anope_cmd_global_legacy(char *source, char *fmt)
|
||||
{
|
||||
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
+13
-3
@@ -638,13 +638,13 @@ void do_part(const char *source, int ac, char **av)
|
||||
|
||||
Unreal SJOIN
|
||||
|
||||
On Connect there is
|
||||
SJOIN !11LkOb #ircops +nt :@Trystan
|
||||
On Services connect there is
|
||||
SJOIN !11LkOb #ircops +nt :@Trystan &*!*@*.aol.com "*@*.home.com
|
||||
|
||||
av[0] = time stamp (base64)
|
||||
av[1] = channel
|
||||
av[2] = modes
|
||||
av[3] = users + bans
|
||||
av[3] = users + bans + exceptions
|
||||
|
||||
On Channel Creation or a User joins an existing
|
||||
Luna.NomadIrc.Net SJOIN !11LkW9 #akill :@Trystan
|
||||
@@ -714,6 +714,16 @@ void do_sjoin(const char *source, int ac, char **av)
|
||||
}
|
||||
}
|
||||
|
||||
/* Unreal plans to add +I - for now add the hook to allow
|
||||
1.7.6 to work with it and not cause problems - TSL */
|
||||
if (*s == '\'') {
|
||||
add_invite(c, myStrGetToken(s, '\'', 1));
|
||||
if (!end)
|
||||
break;
|
||||
s = end + 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
while (csmodes[(int) *s] != 0)
|
||||
*end2++ = csmodes[(int) *s++];
|
||||
*end2 = 0;
|
||||
|
||||
@@ -1354,4 +1354,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
|
||||
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
|
||||
}
|
||||
|
||||
/* GLOBOPS - to handle old WALLOPS */
|
||||
void anope_cmd_global_legacy(char *source, char *fmt)
|
||||
{
|
||||
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -530,6 +530,11 @@ void anope_cmd_global(char *source, const char *fmt, ...)
|
||||
send_cmd(source ? source : ServerName, "OPERWALL :%s", buf);
|
||||
}
|
||||
|
||||
/* GLOBOPS - to handle old WALLOPS */
|
||||
void anope_cmd_global_legacy(char *source, char *fmt)
|
||||
{
|
||||
send_cmd(source ? source : ServerName, "OPERWALL :%s", fmt);
|
||||
}
|
||||
|
||||
int anope_event_sjoin(char *source, int ac, char **av)
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "commands.h"
|
||||
#include "language.h"
|
||||
#include "modules.h"
|
||||
#include "depricated.h"
|
||||
|
||||
#define MOD_UNIQUE 0
|
||||
#define MOD_HEAD 1
|
||||
|
||||
@@ -1659,4 +1659,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
|
||||
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
|
||||
}
|
||||
|
||||
/* GLOBOPS - to handle old WALLOPS */
|
||||
void anope_cmd_global_legacy(char *source, char *fmt)
|
||||
{
|
||||
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+7
-1
@@ -630,7 +630,7 @@ void anope_cmd_topic(char *whosets, char *chan, char *whosetit,
|
||||
send_cmd(whosets, "TOPIC %s %s %lu :%s", chan, whosetit, when, topic);
|
||||
}
|
||||
|
||||
void anope_cmd_vhost_off(char *nick)
|
||||
void anope_cmd_vhost_off(User * u)
|
||||
{
|
||||
send_cmd(s_HostServ, "SVSMODE %s -x", u->nick);
|
||||
notice_lang(s_HostServ, u, HOST_OFF_UNREAL, u->nick);
|
||||
@@ -1596,4 +1596,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
|
||||
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
|
||||
}
|
||||
|
||||
/* GLOBOPS - to handle old WALLOPS */
|
||||
void anope_cmd_global_legacy(char *source, char *fmt)
|
||||
{
|
||||
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+20
@@ -242,3 +242,23 @@ void privmsg(char *source, char *dest, const char *fmt, ...)
|
||||
}
|
||||
anope_cmd_privmsg2(source, dest, buf);
|
||||
}
|
||||
|
||||
/* cause #defines just bitched to much, its back and hooks to
|
||||
a legacy in the ircd protocol files - TSL */
|
||||
void wallops(char *source, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
char buf[BUFSIZE];
|
||||
*buf = '\0';
|
||||
|
||||
if (fmt) {
|
||||
va_start(args, fmt);
|
||||
vsnprintf(buf, BUFSIZE - 1, fmt, args);
|
||||
va_end(args);
|
||||
}
|
||||
if (!buf) {
|
||||
return;
|
||||
}
|
||||
|
||||
anope_cmd_global_legacy(source, buf);
|
||||
}
|
||||
|
||||
@@ -1700,4 +1700,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
|
||||
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
|
||||
}
|
||||
|
||||
/* GLOBOPS - to handle old WALLOPS */
|
||||
void anope_cmd_global_legacy(char *source, char *fmt)
|
||||
{
|
||||
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1763,4 +1763,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
|
||||
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
|
||||
}
|
||||
|
||||
/* GLOBOPS - to handle old WALLOPS */
|
||||
void anope_cmd_global_legacy(char *source, char *fmt)
|
||||
{
|
||||
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1552,4 +1552,11 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
|
||||
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
|
||||
}
|
||||
|
||||
/* GLOBOPS - to handle old WALLOPS */
|
||||
void anope_cmd_global_legacy(char *source, char *fmt)
|
||||
{
|
||||
send_cmd(source ? source : ServerName, "%s :%s",
|
||||
send_token("GLOBOPS", "]"), fmt);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1362,6 +1362,13 @@ void anope_cmd_global(char *source, const char *fmt, ...)
|
||||
send_token("GLOBOPS", "]"), buf);
|
||||
}
|
||||
|
||||
/* GLOBOPS - to handle old WALLOPS */
|
||||
void anope_cmd_global_legacy(char *source, char *fmt)
|
||||
{
|
||||
send_cmd(source ? source : ServerName, "%s :%s",
|
||||
send_token("GLOBOPS", "]"), fmt);
|
||||
}
|
||||
|
||||
/* SQLINE */
|
||||
/*
|
||||
** parv[0] = sender
|
||||
|
||||
@@ -1671,4 +1671,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
|
||||
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
|
||||
}
|
||||
|
||||
/* GLOBOPS - to handle old WALLOPS */
|
||||
void anope_cmd_global_legacy(char *source, char *fmt)
|
||||
{
|
||||
send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+6
-1
@@ -8,10 +8,15 @@
|
||||
VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="5"
|
||||
VERSION_BUILD="415"
|
||||
VERSION_BUILD="418"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.5 (418)
|
||||
# BUGS : N/A
|
||||
# NOTES : 1. Fixed Rage IRCD compiler error, 2. Added hook for Unreal SJOIN +I support, 3. wallops() is back, 4.
|
||||
# depricated.h added to help older modules work with the new commands
|
||||
#
|
||||
# BUILD : 1.7.5 (415)
|
||||
# BUGS : N/A
|
||||
# NOTES : Fixes Unreal NICKIP and SVSMODE, Updated Base64 lib to fix NICKIP, Updated Spanish language file
|
||||
|
||||
Reference in New Issue
Block a user