mirror of
https://github.com/anope/anope.git
synced 2026-07-04 00:03:12 +02:00
Remove some older protocol modules, mark a number of others obsolete. Some may be rescued later on.
Fix problems with anopesmtp and db-merger tool, mark epona2anope obsolete. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1203 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
include ../../Makefile.inc.win32
|
||||
|
||||
SRCS=bahamut.c charybdis.c dreamforge.c hybrid.c inspircd10.c inspircd11.c plexus2.c plexus3.c ptlink.c rageircd.c \
|
||||
ratbox.c shadowircd.c solidircd.c ultimate2.c ultimate3.c unreal31.c unreal32.c viagra.c
|
||||
SRCS=bahamut.c charybdis.c inspircd11.c \
|
||||
ratbox.c shadowircd.c unreal32.c
|
||||
|
||||
OBJECTS= $(SRCS:.c=.dll)
|
||||
CFLAGS=/LD /MD /D MODULE_COMPILE $(CFLAGS) /I"../../include"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,114 +0,0 @@
|
||||
/* DreamForge IRCD functions
|
||||
*
|
||||
* (C) 2003-2008 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#define UMODE_a 0x00000001 /* Services Admin */
|
||||
#define UMODE_h 0x00000002 /* Help system operator */
|
||||
#define UMODE_i 0x00000004 /* makes user invisible */
|
||||
#define UMODE_o 0x00000008 /* Operator */
|
||||
#define UMODE_r 0x00000010 /* Nick set by services as registered */
|
||||
#define UMODE_w 0x00000020 /* send wallops to them */
|
||||
#define UMODE_A 0x00000040 /* Admin */
|
||||
#define UMODE_O 0x00000080 /* Local operator */
|
||||
#define UMODE_s 0x00000100 /* server notices such as kill */
|
||||
#define UMODE_k 0x00000200 /* Show server-kills... */
|
||||
#define UMODE_c 0x00000400 /* Show client information */
|
||||
#define UMODE_f 0x00000800 /* Receive flood warnings */
|
||||
#define UMODE_g 0x80000000 /* Shows some global messages */
|
||||
|
||||
#define CMODE_i 0x00000001
|
||||
#define CMODE_m 0x00000002
|
||||
#define CMODE_n 0x00000004
|
||||
#define CMODE_p 0x00000008
|
||||
#define CMODE_s 0x00000010
|
||||
#define CMODE_t 0x00000020
|
||||
#define CMODE_k 0x00000040 /* These two used only by ChanServ */
|
||||
#define CMODE_l 0x00000080
|
||||
#define CMODE_R 0x00000100 /* Only identified users can join */
|
||||
#define CMODE_r 0x00000200 /* Set for all registered channels */
|
||||
|
||||
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
|
||||
|
||||
void dreamforge_set_umode(User * user, int ac, const char **av);
|
||||
void dreamforge_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
|
||||
void dreamforge_cmd_vhost_off(User * u);
|
||||
void dreamforge_cmd_akill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
|
||||
void dreamforge_cmd_svskill(const char *source, const char *user, const char *buf);
|
||||
void dreamforge_cmd_svsmode(User * u, int ac, const char **av);
|
||||
void dreamforge_cmd_372(const char *source, const char *msg);
|
||||
void dreamforge_cmd_372_error(const char *source);
|
||||
void dreamforge_cmd_375(const char *source);
|
||||
void dreamforge_cmd_376(const char *source);
|
||||
void dreamforge_cmd_nick(const char *nick, const char *name, const char *modes);
|
||||
void dreamforge_cmd_guest_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void dreamforge_cmd_mode(const char *source, const char *dest, const char *buf);
|
||||
void dreamforge_cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void dreamforge_cmd_kick(const char *source, const char *chan, const char *user, const char *buf);
|
||||
void dreamforge_cmd_notice_ops(const char *source, const char *dest, const char *buf);
|
||||
void dreamforge_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void dreamforge_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void dreamforge_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void dreamforge_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void dreamforge_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void dreamforge_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void dreamforge_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void dreamforge_cmd_351(const char *source);
|
||||
void dreamforge_cmd_quit(const char *source, const char *buf);
|
||||
void dreamforge_cmd_pong(const char *servname, const char *who);
|
||||
void dreamforge_cmd_join(const char *user, const char *channel, time_t chantime);
|
||||
void dreamforge_cmd_unsqline(const char *user);
|
||||
void dreamforge_cmd_invite(const char *source, const char *chan, const char *nick);
|
||||
void dreamforge_cmd_part(const char *nick, const char *chan, const char *buf);
|
||||
void dreamforge_cmd_391(const char *source, const char *timestr);
|
||||
void dreamforge_cmd_250(const char *buf);
|
||||
void dreamforge_cmd_307(const char *buf);
|
||||
void dreamforge_cmd_311(const char *buf);
|
||||
void dreamforge_cmd_312(const char *buf);
|
||||
void dreamforge_cmd_317(const char *buf);
|
||||
void dreamforge_cmd_219(const char *source, const char *letter);
|
||||
void dreamforge_cmd_401(const char *source, const char *who);
|
||||
void dreamforge_cmd_318(const char *source, const char *who);
|
||||
void dreamforge_cmd_242(const char *buf);
|
||||
void dreamforge_cmd_243(const char *buf);
|
||||
void dreamforge_cmd_211(const char *buf);
|
||||
void dreamforge_cmd_global(const char *source, const char *buf);
|
||||
void dreamforge_cmd_global_legacy(const char *source, const char *fmt);
|
||||
void dreamforge_cmd_sqline(const char *mask, const char *reason);
|
||||
void dreamforge_cmd_squit(const char *servname, const char *message);
|
||||
void dreamforge_cmd_svso(const char *source, const char *nick, const char *flag);
|
||||
void dreamforge_cmd_chg_nick(const char *oldnick, const char *newnick);
|
||||
void dreamforge_cmd_svsnick(const char *source, const char *guest, time_t when);
|
||||
void dreamforge_cmd_vhost_on(const char *nick, const char *vIdent, const char *vhost);
|
||||
void dreamforge_cmd_connect(int servernum);
|
||||
void dreamforge_cmd_svshold(const char *nick);
|
||||
void dreamforge_cmd_release_svshold(const char *nick);
|
||||
void dreamforge_cmd_unsgline(const char *mask);
|
||||
void dreamforge_cmd_unszline(const char *mask);
|
||||
void dreamforge_cmd_szline(const char *mask, const char *reason, const char *whom);
|
||||
void dreamforge_cmd_sgline(const char *mask, const char *reason);
|
||||
void dreamforge_cmd_unban(const char *name, const char *nick);
|
||||
void dreamforge_cmd_svsmode_chan(const char *name, const char *mode, const char *nick);
|
||||
void dreamforge_cmd_svid_umode(const char *nick, time_t ts);
|
||||
void dreamforge_cmd_nc_change(User * u);
|
||||
void dreamforge_cmd_svid_umode2(User * u, const char *ts);
|
||||
void dreamforge_cmd_svid_umode3(User * u, const char *ts);
|
||||
void dreamforge_cmd_eob();
|
||||
int dreamforge_flood_mode_check(const char *value);
|
||||
void dreamforge_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int dreamforge_valid_nick(const char *nick);
|
||||
void dreamforge_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
|
||||
class DreamForgeProto : public IRCDProtoNew {
|
||||
public:
|
||||
void cmd_svsnoop(const char *, int);
|
||||
void cmd_remove_akill(const char *, const char *);
|
||||
} ircd_proto;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,136 +0,0 @@
|
||||
/* inspircd beta 6 functions
|
||||
*
|
||||
* (C) 2003-2008 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
#define UMODE_a 0x00000001
|
||||
#define UMODE_h 0x00000002
|
||||
#define UMODE_i 0x00000004
|
||||
#define UMODE_o 0x00000008
|
||||
#define UMODE_r 0x00000010
|
||||
#define UMODE_w 0x00000020
|
||||
#define UMODE_A 0x00000040
|
||||
#define UMODE_g 0x80000000
|
||||
#define UMODE_x 0x40000000
|
||||
|
||||
#define CMODE_i 0x00000001
|
||||
#define CMODE_m 0x00000002
|
||||
#define CMODE_n 0x00000004
|
||||
#define CMODE_p 0x00000008
|
||||
#define CMODE_s 0x00000010
|
||||
#define CMODE_t 0x00000020
|
||||
#define CMODE_k 0x00000040 /* These two used only by ChanServ */
|
||||
#define CMODE_l 0x00000080
|
||||
#define CMODE_c 0x00000400
|
||||
#define CMODE_A 0x00000800
|
||||
#define CMODE_H 0x00001000
|
||||
#define CMODE_K 0x00002000
|
||||
#define CMODE_L 0x00004000
|
||||
#define CMODE_O 0x00008000
|
||||
#define CMODE_Q 0x00010000
|
||||
#define CMODE_S 0x00020000
|
||||
#define CMODE_V 0x00040000
|
||||
#define CMODE_f 0x00080000
|
||||
#define CMODE_G 0x00100000
|
||||
#define CMODE_C 0x00200000
|
||||
#define CMODE_u 0x00400000
|
||||
#define CMODE_z 0x00800000
|
||||
#define CMODE_N 0x01000000
|
||||
#define CMODE_R 0x00000100 /* Only identified users can join */
|
||||
#define CMODE_r 0x00000200 /* Set for all registered channels */
|
||||
|
||||
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
|
||||
|
||||
void inspircd_set_umode(User * user, int ac, const char **av);
|
||||
void inspircd_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
|
||||
void inspircd_cmd_vhost_off(User * u);
|
||||
void inspircd_cmd_akill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
|
||||
void inspircd_cmd_svskill(const char *source, const char *user, const char *buf);
|
||||
void inspircd_cmd_svsmode(User * u, int ac, const char **av);
|
||||
void inspircd_cmd_372(const char *source, const char *msg);
|
||||
void inspircd_cmd_372_error(const char *source);
|
||||
void inspircd_cmd_375(const char *source);
|
||||
void inspircd_cmd_376(const char *source);
|
||||
void inspircd_cmd_nick(const char *nick, const char *name, const char *modes);
|
||||
void inspircd_cmd_guest_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void inspircd_cmd_mode(const char *source, const char *dest, const char *buf);
|
||||
void inspircd_cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void inspircd_cmd_kick(const char *source, const char *chan, const char *user, const char *buf);
|
||||
void inspircd_cmd_notice_ops(const char *source, const char *dest, const char *buf);
|
||||
void inspircd_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void inspircd_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void inspircd_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void inspircd_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void inspircd_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void inspircd_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void inspircd_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void inspircd_cmd_351(const char *source);
|
||||
void inspircd_cmd_quit(const char *source, const char *buf);
|
||||
void inspircd_cmd_pong(const char *servname, const char *who);
|
||||
void inspircd_cmd_join(const char *user, const char *channel, time_t chantime);
|
||||
void inspircd_cmd_unsqline(const char *user);
|
||||
void inspircd_cmd_invite(const char *source, const char *chan, const char *nick);
|
||||
void inspircd_cmd_part(const char *nick, const char *chan, const char *buf);
|
||||
void inspircd_cmd_391(const char *source, const char *timestr);
|
||||
void inspircd_cmd_250(const char *buf);
|
||||
void inspircd_cmd_307(const char *buf);
|
||||
void inspircd_cmd_311(const char *buf);
|
||||
void inspircd_cmd_312(const char *buf);
|
||||
void inspircd_cmd_317(const char *buf);
|
||||
void inspircd_cmd_219(const char *source, const char *letter);
|
||||
void inspircd_cmd_401(const char *source, const char *who);
|
||||
void inspircd_cmd_318(const char *source, const char *who);
|
||||
void inspircd_cmd_242(const char *buf);
|
||||
void inspircd_cmd_243(const char *buf);
|
||||
void inspircd_cmd_211(const char *buf);
|
||||
void inspircd_cmd_global(const char *source, const char *buf);
|
||||
void inspircd_cmd_global_legacy(const char *source, const char *fmt);
|
||||
void inspircd_cmd_sqline(const char *mask, const char *reason);
|
||||
void inspircd_cmd_squit(const char *servname, const char *message);
|
||||
void inspircd_cmd_svso(const char *source, const char *nick, const char *flag);
|
||||
void inspircd_cmd_chg_nick(const char *oldnick, const char *newnick);
|
||||
void inspircd_cmd_svsnick(const char *source, const char *guest, time_t when);
|
||||
void inspircd_cmd_vhost_on(const char *nick, const char *vIdent, const char *vhost);
|
||||
void inspircd_cmd_connect(int servernum);
|
||||
void inspircd_cmd_svshold(const char *nick);
|
||||
void inspircd_cmd_release_svshold(const char *nick);
|
||||
void inspircd_cmd_unsgline(const char *mask);
|
||||
void inspircd_cmd_unszline(const char *mask);
|
||||
void inspircd_cmd_szline(const char *mask, const char *reason, const char *whom);
|
||||
void inspircd_cmd_sgline(const char *mask, const char *reason);
|
||||
void inspircd_cmd_unban(const char *name, const char *nick);
|
||||
void inspircd_cmd_svsmode_chan(const char *name, const char *mode, const char *nick);
|
||||
void inspircd_cmd_svid_umode(const char *nick, time_t ts);
|
||||
void inspircd_cmd_nc_change(User * u);
|
||||
void inspircd_cmd_svid_umode2(User * u, const char *ts);
|
||||
void inspircd_cmd_svid_umode3(User * u, const char *ts);
|
||||
void inspircd_cmd_eob();
|
||||
int inspircd_flood_mode_check(const char *value);
|
||||
void inspircd_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int inspircd_valid_nick(const char *nick);
|
||||
void inspircd_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
int anope_event_fjoin(const char *source, int ac, const char **av);
|
||||
int anope_event_fmode(const char *source, int ac, const char **av);
|
||||
int anope_event_ftopic(const char *source, int ac, const char **av);
|
||||
int anope_event_sanick(const char *source, int ac, const char **av);
|
||||
int anope_event_samode(const char *source, int ac, const char **av);
|
||||
int anope_event_sajoin(const char *source, int ac, const char **av);
|
||||
int anope_event_sapart(const char *source, int ac, const char **av);
|
||||
int anope_event_version(const char *source, int ac, const char **av);
|
||||
int anope_event_opertype(const char *source, int ac, const char **av);
|
||||
int anope_event_idle(const char *source, int ac, const char **av);
|
||||
|
||||
class InspIRCdProto : public IRCDProtoNew {
|
||||
public:
|
||||
void cmd_remove_akill(const char *, const char *);
|
||||
} ircd_proto;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,127 +0,0 @@
|
||||
/* PlexusIRCD IRCD functions
|
||||
*
|
||||
* (C) 2003-2008 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#define UMODE_a 0x00000001
|
||||
#define UMODE_h 0x00000002
|
||||
#define UMODE_i 0x00000004
|
||||
#define UMODE_o 0x00000008
|
||||
#define UMODE_R 0x00000010
|
||||
#define UMODE_w 0x00000020
|
||||
#define UMODE_s 0x00000040
|
||||
#define UMODE_c 0x00000080
|
||||
#define UMODE_r 0x00000100
|
||||
#define UMODE_k 0x00000200
|
||||
#define UMODE_f 0x00000400
|
||||
#define UMODE_y 0x00000800
|
||||
#define UMODE_d 0x00001000
|
||||
#define UMODE_n 0x00002000
|
||||
#define UMODE_x 0x00004000
|
||||
#define UMODE_u 0x00008000
|
||||
#define UMODE_b 0x00010000
|
||||
#define UMODE_l 0x00020000
|
||||
#define UMODE_g 0x00040000
|
||||
#define UMODE_S 0x00080000
|
||||
|
||||
|
||||
#define CMODE_i 0x00000001
|
||||
#define CMODE_m 0x00000002
|
||||
#define CMODE_n 0x00000004
|
||||
#define CMODE_p 0x00000008
|
||||
#define CMODE_s 0x00000010
|
||||
#define CMODE_t 0x00000020
|
||||
#define CMODE_k 0x00000040 /* These two used only by ChanServ */
|
||||
#define CMODE_l 0x00000080
|
||||
#define CMODE_a 0x00000400
|
||||
#define CMODE_Z 0x00000800
|
||||
#define CMODE_M 0x00001000
|
||||
#define CMODE_c 0x00002000
|
||||
#define CMODE_O 0x00004000
|
||||
#define CMODE_R 0x00008000
|
||||
#define CMODE_N 0x00010000
|
||||
|
||||
|
||||
#define DEFAULT_MLOCK CMODE_n | CMODE_t
|
||||
|
||||
void plexus_set_umode(User * user, int ac, const char **av);
|
||||
void plexus_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
|
||||
void plexus_cmd_vhost_off(User * u);
|
||||
void plexus_cmd_akill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
|
||||
void plexus_cmd_svskill(const char *source, const char *user, const char *buf);
|
||||
void plexus_cmd_svsmode(User * u, int ac, const char **av);
|
||||
void plexus_cmd_372(const char *source, const char *msg);
|
||||
void plexus_cmd_372_error(const char *source);
|
||||
void plexus_cmd_375(const char *source);
|
||||
void plexus_cmd_376(const char *source);
|
||||
void plexus_cmd_nick(const char *nick, const char *name, const char *modes);
|
||||
void plexus_cmd_guest_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void plexus_cmd_mode(const char *source, const char *dest, const char *buf);
|
||||
void plexus_cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void plexus_cmd_kick(const char *source, const char *chan, const char *user, const char *buf);
|
||||
void plexus_cmd_notice_ops(const char *source, const char *dest, const char *buf);
|
||||
void plexus_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void plexus_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void plexus_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void plexus_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void plexus_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void plexus_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void plexus_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void plexus_cmd_351(const char *source);
|
||||
void plexus_cmd_quit(const char *source, const char *buf);
|
||||
void plexus_cmd_pong(const char *servname, const char *who);
|
||||
void plexus_cmd_join(const char *user, const char *channel, time_t chantime);
|
||||
void plexus_cmd_unsqline(const char *user);
|
||||
void plexus_cmd_invite(const char *source, const char *chan, const char *nick);
|
||||
void plexus_cmd_part(const char *nick, const char *chan, const char *buf);
|
||||
void plexus_cmd_391(const char *source, const char *timestr);
|
||||
void plexus_cmd_250(const char *buf);
|
||||
void plexus_cmd_307(const char *buf);
|
||||
void plexus_cmd_311(const char *buf);
|
||||
void plexus_cmd_312(const char *buf);
|
||||
void plexus_cmd_317(const char *buf);
|
||||
void plexus_cmd_219(const char *source, const char *letter);
|
||||
void plexus_cmd_401(const char *source, const char *who);
|
||||
void plexus_cmd_318(const char *source, const char *who);
|
||||
void plexus_cmd_242(const char *buf);
|
||||
void plexus_cmd_243(const char *buf);
|
||||
void plexus_cmd_211(const char *buf);
|
||||
void plexus_cmd_global(const char *source, const char *buf);
|
||||
void plexus_cmd_global_legacy(const char *source, const char *fmt);
|
||||
void plexus_cmd_sqline(const char *mask, const char *reason);
|
||||
void plexus_cmd_squit(const char *servname, const char *message);
|
||||
void plexus_cmd_svso(const char *source, const char *nick, const char *flag);
|
||||
void plexus_cmd_chg_nick(const char *oldnick, const char *newnick);
|
||||
void plexus_cmd_svsnick(const char *source, const char *guest, time_t when);
|
||||
void plexus_cmd_vhost_on(const char *nick, const char *vIdent, const char *vhost);
|
||||
void plexus_cmd_connect(int servernum);
|
||||
void plexus_cmd_svshold(const char *nick);
|
||||
void plexus_cmd_release_svshold(const char *nick);
|
||||
void plexus_cmd_unsgline(const char *mask);
|
||||
void plexus_cmd_unszline(const char *mask);
|
||||
void plexus_cmd_szline(const char *mask, const char *reason, const char *whom);
|
||||
void plexus_cmd_sgline(const char *mask, const char *reason);
|
||||
void plexus_cmd_unban(const char *name, const char *nick);
|
||||
void plexus_cmd_svsmode_chan(const char *name, const char *mode, const char *nick);
|
||||
void plexus_cmd_svid_umode(const char *nick, time_t ts);
|
||||
void plexus_cmd_nc_change(User * u);
|
||||
void plexus_cmd_svid_umode2(User * u, const char *ts);
|
||||
void plexus_cmd_svid_umode3(User * u, const char *ts);
|
||||
void plexus_cmd_eob();
|
||||
int plexus_flood_mode_check(const char *value);
|
||||
void plexus_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int plexus_valid_nick(const char *nick);
|
||||
void plexus_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
|
||||
class PleXusIRCdProto : public IRCDProtoNew {
|
||||
public:
|
||||
void cmd_remove_akill(const char *, const char *);
|
||||
} ircd_proto;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,145 +0,0 @@
|
||||
/* ShadowIRCD functions
|
||||
*
|
||||
* (C) 2003-2008 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/* The protocol revision. */
|
||||
#define PROTOCOL_REVISION 3402
|
||||
|
||||
|
||||
#define UMODE_a 0x00000001
|
||||
#define UMODE_C 0x00000002
|
||||
#define UMODE_i 0x00000004
|
||||
#define UMODE_o 0x00000008
|
||||
#define UMODE_z 0x00000010
|
||||
#define UMODE_w 0x00000020
|
||||
#define UMODE_s 0x00000040
|
||||
#define UMODE_c 0x00000080
|
||||
#define UMODE_r 0x00000100
|
||||
#define UMODE_k 0x00000200
|
||||
#define UMODE_f 0x00000400
|
||||
#define UMODE_y 0x00000800
|
||||
#define UMODE_d 0x00001000
|
||||
#define UMODE_n 0x00002000
|
||||
#define UMODE_x 0x00004000
|
||||
#define UMODE_u 0x00008000
|
||||
#define UMODE_b 0x00010000
|
||||
#define UMODE_l 0x00020000
|
||||
#define UMODE_g 0x00040000
|
||||
#define UMODE_v 0x00080000
|
||||
#define UMODE_A 0x00100000
|
||||
#define UMODE_E 0x00200000
|
||||
#define UMODE_G 0x00400000
|
||||
#define UMODE_R 0x00800000
|
||||
#define UMODE_e 0x01000000
|
||||
#define UMODE_O 0x02000000
|
||||
#define UMODE_H 0x04000000
|
||||
|
||||
#define CMODE_i 0x00000001
|
||||
#define CMODE_m 0x00000002
|
||||
#define CMODE_n 0x00000004
|
||||
#define CMODE_p 0x00000008
|
||||
#define CMODE_s 0x00000010
|
||||
#define CMODE_t 0x00000020
|
||||
#define CMODE_k 0x00000040
|
||||
#define CMODE_l 0x00000080
|
||||
#define CMODE_K 0x00000100
|
||||
#define CMODE_A 0x00000200
|
||||
#define CMODE_r 0x00000400
|
||||
#define CMODE_z 0x00000800
|
||||
#define CMODE_S 0x00001000
|
||||
#define CMODE_c 0x00002000
|
||||
#define CMODE_E 0x00004000
|
||||
#define CMODE_F 0x00008000
|
||||
#define CMODE_G 0x00010000
|
||||
#define CMODE_L 0x00020000
|
||||
#define CMODE_N 0x00040000
|
||||
#define CMODE_O 0x00080000
|
||||
#define CMODE_P 0x00100000
|
||||
#define CMODE_R 0x00200000
|
||||
#define CMODE_T 0x00400000
|
||||
#define CMODE_V 0x00800000
|
||||
|
||||
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
|
||||
|
||||
void shadowircd_set_umode(User * user, int ac, const char **av);
|
||||
void shadowircd_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
|
||||
void shadowircd_cmd_vhost_off(User * u);
|
||||
void shadowircd_cmd_akill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
|
||||
void shadowircd_cmd_svskill(const char *source, const char *user, const char *buf);
|
||||
void shadowircd_cmd_svsmode(User * u, int ac, const char **av);
|
||||
void shadowircd_cmd_372(const char *source, const char *msg);
|
||||
void shadowircd_cmd_372_error(const char *source);
|
||||
void shadowircd_cmd_375(const char *source);
|
||||
void shadowircd_cmd_376(const char *source);
|
||||
void shadowircd_cmd_nick(const char *nick, const char *name, const char *modes);
|
||||
void shadowircd_cmd_guest_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void shadowircd_cmd_mode(const char *source, const char *dest, const char *buf);
|
||||
void shadowircd_cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void shadowircd_cmd_kick(const char *source, const char *chan, const char *user, const char *buf);
|
||||
void shadowircd_cmd_notice_ops(const char *source, const char *dest, const char *buf);
|
||||
void shadowircd_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void shadowircd_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void shadowircd_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void shadowircd_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void shadowircd_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void shadowircd_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void shadowircd_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void shadowircd_cmd_351(const char *source);
|
||||
void shadowircd_cmd_quit(const char *source, const char *buf);
|
||||
void shadowircd_cmd_pong(const char *servname, const char *who);
|
||||
void shadowircd_cmd_join(const char *user, const char *channel, time_t chantime);
|
||||
void shadowircd_cmd_unsqline(const char *user);
|
||||
void shadowircd_cmd_invite(const char *source, const char *chan, const char *nick);
|
||||
void shadowircd_cmd_part(const char *nick, const char *chan, const char *buf);
|
||||
void shadowircd_cmd_391(const char *source, const char *timestr);
|
||||
void shadowircd_cmd_250(const char *buf);
|
||||
void shadowircd_cmd_307(const char *buf);
|
||||
void shadowircd_cmd_311(const char *buf);
|
||||
void shadowircd_cmd_312(const char *buf);
|
||||
void shadowircd_cmd_317(const char *buf);
|
||||
void shadowircd_cmd_219(const char *source, const char *letter);
|
||||
void shadowircd_cmd_401(const char *source, const char *who);
|
||||
void shadowircd_cmd_318(const char *source, const char *who);
|
||||
void shadowircd_cmd_242(const char *buf);
|
||||
void shadowircd_cmd_243(const char *buf);
|
||||
void shadowircd_cmd_211(const char *buf);
|
||||
void shadowircd_cmd_global(const char *source, const char *buf);
|
||||
void shadowircd_cmd_global_legacy(const char *source, const char *fmt);
|
||||
void shadowircd_cmd_sqline(const char *mask, const char *reason);
|
||||
void shadowircd_cmd_squit(const char *servname, const char *message);
|
||||
void shadowircd_cmd_svso(const char *source, const char *nick, const char *flag);
|
||||
void shadowircd_cmd_chg_nick(const char *oldnick, const char *newnick);
|
||||
void shadowircd_cmd_svsnick(const char *source, const char *guest, time_t when);
|
||||
void shadowircd_cmd_vhost_on(const char *nick, const char *vIdent, const char *vhost);
|
||||
void shadowircd_cmd_connect(int servernum);
|
||||
void shadowircd_cmd_svshold(const char *nick);
|
||||
void shadowircd_cmd_release_svshold(const char *nick);
|
||||
void shadowircd_cmd_unsgline(const char *mask);
|
||||
void shadowircd_cmd_unszline(const char *mask);
|
||||
void shadowircd_cmd_szline(const char *mask, const char *reason, const char *whom);
|
||||
void shadowircd_cmd_sgline(const char *mask, const char *reason);
|
||||
void shadowircd_cmd_unban(const char *name, const char *nick);
|
||||
void shadowircd_cmd_svsmode_chan(const char *name, const char *mode, const char *nick);
|
||||
void shadowircd_cmd_svid_umode(const char *nick, time_t ts);
|
||||
void shadowircd_cmd_nc_change(User * u);
|
||||
void shadowircd_cmd_svid_umode2(User * u, const char *ts);
|
||||
void shadowircd_cmd_svid_umode3(User * u, const char *ts);
|
||||
void shadowircd_cmd_eob();
|
||||
int shadowircd_flood_mode_check(const char *value);
|
||||
void shadowircd_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int shadowircd_valid_nick(const char *nick);
|
||||
void shadowircd_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
|
||||
class ShadowIRCdProto : public IRCDProtoNew {
|
||||
public:
|
||||
void cmd_remove_akill(const char *, const char *);
|
||||
} ircd_proto;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,122 +0,0 @@
|
||||
/* Ultimate IRCD 2 functions
|
||||
*
|
||||
* (C) 2003-2008 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#define UMODE_a 0x00000001
|
||||
#define UMODE_h 0x00000002
|
||||
#define UMODE_i 0x00000004
|
||||
#define UMODE_o 0x00000008
|
||||
#define UMODE_r 0x00000010
|
||||
#define UMODE_w 0x00000020
|
||||
#define UMODE_A 0x00000040
|
||||
#define UMODE_p 0x04000000
|
||||
#define UMODE_R 0x08000000
|
||||
#define UMODE_P 0x20000000
|
||||
#define UMODE_g 0x80000000
|
||||
#define UMODE_x 0x40000000
|
||||
|
||||
|
||||
#define CMODE_i 0x00000001
|
||||
#define CMODE_m 0x00000002
|
||||
#define CMODE_n 0x00000004
|
||||
#define CMODE_p 0x00000008
|
||||
#define CMODE_s 0x00000010
|
||||
#define CMODE_t 0x00000020
|
||||
#define CMODE_k 0x00000040 /* These two used only by ChanServ */
|
||||
#define CMODE_l 0x00000080
|
||||
#define CMODE_f 0x00000400
|
||||
#define CMODE_x 0x00000800
|
||||
#define CMODE_A 0x00001000
|
||||
#define CMODE_I 0x00002000
|
||||
#define CMODE_K 0x00004000
|
||||
#define CMODE_L 0x00008000
|
||||
#define CMODE_O 0x00010000
|
||||
#define CMODE_S 0x00020000
|
||||
#define CMODE_R 0x00000100 /* Only identified users can join */
|
||||
#define CMODE_r 0x00000200 /* Set for all registered channels */
|
||||
|
||||
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
|
||||
|
||||
void ultimate2_set_umode(User * user, int ac, const char **av);
|
||||
void ultimate2_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
|
||||
void ultimate2_cmd_vhost_off(User * u);
|
||||
void ultimate2_cmd_akill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
|
||||
void ultimate2_cmd_svskill(const char *source, const char *user, const char *buf);
|
||||
void ultimate2_cmd_svsmode(User * u, int ac, const char **av);
|
||||
void ultimate2_cmd_372(const char *source, const char *msg);
|
||||
void ultimate2_cmd_372_error(const char *source);
|
||||
void ultimate2_cmd_375(const char *source);
|
||||
void ultimate2_cmd_376(const char *source);
|
||||
void ultimate2_cmd_nick(const char *nick, const char *name, const char *modes);
|
||||
void ultimate2_cmd_guest_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void ultimate2_cmd_mode(const char *source, const char *dest, const char *buf);
|
||||
void ultimate2_cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void ultimate2_cmd_kick(const char *source, const char *chan, const char *user, const char *buf);
|
||||
void ultimate2_cmd_notice_ops(const char *source, const char *dest, const char *buf);
|
||||
void ultimate2_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void ultimate2_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void ultimate2_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void ultimate2_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void ultimate2_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void ultimate2_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void ultimate2_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void ultimate2_cmd_351(const char *source);
|
||||
void ultimate2_cmd_quit(const char *source, const char *buf);
|
||||
void ultimate2_cmd_pong(const char *servname, const char *who);
|
||||
void ultimate2_cmd_join(const char *user, const char *channel, time_t chantime);
|
||||
void ultimate2_cmd_unsqline(const char *user);
|
||||
void ultimate2_cmd_invite(const char *source, const char *chan, const char *nick);
|
||||
void ultimate2_cmd_part(const char *nick, const char *chan, const char *buf);
|
||||
void ultimate2_cmd_391(const char *source, const char *timestr);
|
||||
void ultimate2_cmd_250(const char *buf);
|
||||
void ultimate2_cmd_307(const char *buf);
|
||||
void ultimate2_cmd_311(const char *buf);
|
||||
void ultimate2_cmd_312(const char *buf);
|
||||
void ultimate2_cmd_317(const char *buf);
|
||||
void ultimate2_cmd_219(const char *source, const char *letter);
|
||||
void ultimate2_cmd_401(const char *source, const char *who);
|
||||
void ultimate2_cmd_318(const char *source, const char *who);
|
||||
void ultimate2_cmd_242(const char *buf);
|
||||
void ultimate2_cmd_243(const char *buf);
|
||||
void ultimate2_cmd_211(const char *buf);
|
||||
void ultimate2_cmd_global(const char *source, const char *buf);
|
||||
void ultimate2_cmd_global_legacy(const char *source, const char *fmt);
|
||||
void ultimate2_cmd_sqline(const char *mask, const char *reason);
|
||||
void ultimate2_cmd_squit(const char *servname, const char *message);
|
||||
void ultimate2_cmd_svso(const char *source, const char *nick, const char *flag);
|
||||
void ultimate2_cmd_chg_nick(const char *oldnick, const char *newnick);
|
||||
void ultimate2_cmd_svsnick(const char *source, const char *guest, time_t when);
|
||||
void ultimate2_cmd_vhost_on(const char *nick, const char *vIdent, const char *vhost);
|
||||
void ultimate2_cmd_connect(int servernum);
|
||||
void ultimate2_cmd_svshold(const char *nick);
|
||||
void ultimate2_cmd_release_svshold(const char *nick);
|
||||
void ultimate2_cmd_unsgline(const char *mask);
|
||||
void ultimate2_cmd_unszline(const char *mask);
|
||||
void ultimate2_cmd_szline(const char *mask, const char *reason, const char *whom);
|
||||
void ultimate2_cmd_sgline(const char *mask, const char *reason);
|
||||
void ultimate2_cmd_unban(const char *name, const char *nick);
|
||||
void ultimate2_cmd_svsmode_chan(const char *name, const char *mode, const char *nick);
|
||||
void ultimate2_cmd_svid_umode(const char *nick, time_t ts);
|
||||
void ultimate2_cmd_nc_change(User * u);
|
||||
void ultimate2_cmd_svid_umode2(User * u, const char *ts);
|
||||
void ultimate2_cmd_svid_umode3(User * u, const char *ts);
|
||||
void ultimate2_cmd_eob();
|
||||
int ultimate2_flood_mode_check(const char *value);
|
||||
void ultimate2_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int ultimate2_valid_nick(const char *nick);
|
||||
void ultimate2_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
|
||||
class UltimateIRCdProto : public IRCDProtoNew {
|
||||
public:
|
||||
void cmd_svsnoop(const char *, int);
|
||||
void cmd_remove_akill(const char *, const char *);
|
||||
} ircd_proto;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,127 +0,0 @@
|
||||
/* Unreal IRCD 3.1.x functions
|
||||
*
|
||||
* (C) 2003-2008 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
#define UMODE_a 0x00000001
|
||||
#define UMODE_h 0x00000002
|
||||
#define UMODE_i 0x00000004
|
||||
#define UMODE_o 0x00000008
|
||||
#define UMODE_r 0x00000010
|
||||
#define UMODE_w 0x00000020
|
||||
#define UMODE_A 0x00000040
|
||||
#define UMODE_g 0x80000000
|
||||
#define UMODE_x 0x40000000
|
||||
|
||||
#define CMODE_i 0x00000001
|
||||
#define CMODE_m 0x00000002
|
||||
#define CMODE_n 0x00000004
|
||||
#define CMODE_p 0x00000008
|
||||
#define CMODE_s 0x00000010
|
||||
#define CMODE_t 0x00000020
|
||||
#define CMODE_k 0x00000040 /* These two used only by ChanServ */
|
||||
#define CMODE_l 0x00000080
|
||||
#define CMODE_c 0x00000400
|
||||
#define CMODE_A 0x00000800
|
||||
#define CMODE_H 0x00001000
|
||||
#define CMODE_K 0x00002000
|
||||
#define CMODE_L 0x00004000
|
||||
#define CMODE_O 0x00008000
|
||||
#define CMODE_Q 0x00010000
|
||||
#define CMODE_S 0x00020000
|
||||
#define CMODE_V 0x00040000
|
||||
#define CMODE_f 0x00080000
|
||||
#define CMODE_G 0x00100000
|
||||
#define CMODE_C 0x00200000
|
||||
#define CMODE_u 0x00400000
|
||||
#define CMODE_z 0x00800000
|
||||
#define CMODE_N 0x01000000
|
||||
#define CMODE_R 0x00000100 /* Only identified users can join */
|
||||
#define CMODE_r 0x00000200 /* Set for all registered channels */
|
||||
|
||||
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
|
||||
|
||||
void unreal_set_umode(User * user, int ac, const char **av);
|
||||
void unreal_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when);
|
||||
void unreal_cmd_vhost_off(User * u);
|
||||
void unreal_cmd_akill(const char *user, const char *host, const char *who, time_t when,time_t expires, const char *reason);
|
||||
void unreal_cmd_svskill(const char *source, const char *user, const char *buf);
|
||||
void unreal_cmd_svsmode(User * u, int ac, const char **av);
|
||||
void unreal_cmd_372(const char *source, const char *msg);
|
||||
void unreal_cmd_372_error(const char *source);
|
||||
void unreal_cmd_375(const char *source);
|
||||
void unreal_cmd_376(const char *source);
|
||||
void unreal_cmd_nick(const char *nick, const char *name, const char *modes);
|
||||
void unreal_cmd_guest_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void unreal_cmd_mode(const char *source, const char *dest, const char *buf);
|
||||
void unreal_cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes);
|
||||
void unreal_cmd_kick(const char *source, const char *chan, const char *user, const char *buf);
|
||||
void unreal_cmd_notice_ops(const char *source, const char *dest, const char *buf);
|
||||
void unreal_cmd_notice(const char *source, const char *dest, const char *buf);
|
||||
void unreal_cmd_notice2(const char *source, const char *dest, const char *msg);
|
||||
void unreal_cmd_privmsg(const char *source, const char *dest, const char *buf);
|
||||
void unreal_cmd_privmsg2(const char *source, const char *dest, const char *msg);
|
||||
void unreal_cmd_serv_notice(const char *source, const char *dest, const char *msg);
|
||||
void unreal_cmd_serv_privmsg(const char *source, const char *dest, const char *msg);
|
||||
void unreal_cmd_bot_chan_mode(const char *nick, const char *chan);
|
||||
void unreal_cmd_351(const char *source);
|
||||
void unreal_cmd_quit(const char *source, const char *buf);
|
||||
void unreal_cmd_pong(const char *servname, const char *who);
|
||||
void unreal_cmd_join(const char *user, const char *channel, time_t chantime);
|
||||
void unreal_cmd_unsqline(const char *user);
|
||||
void unreal_cmd_invite(const char *source, const char *chan, const char *nick);
|
||||
void unreal_cmd_part(const char *nick, const char *chan, const char *buf);
|
||||
void unreal_cmd_391(const char *source, const char *timestr);
|
||||
void unreal_cmd_250(const char *buf);
|
||||
void unreal_cmd_307(const char *buf);
|
||||
void unreal_cmd_311(const char *buf);
|
||||
void unreal_cmd_312(const char *buf);
|
||||
void unreal_cmd_317(const char *buf);
|
||||
void unreal_cmd_219(const char *source, const char *letter);
|
||||
void unreal_cmd_401(const char *source, const char *who);
|
||||
void unreal_cmd_318(const char *source, const char *who);
|
||||
void unreal_cmd_242(const char *buf);
|
||||
void unreal_cmd_243(const char *buf);
|
||||
void unreal_cmd_211(const char *buf);
|
||||
void unreal_cmd_global(const char *source, const char *buf);
|
||||
void unreal_cmd_global_legacy(const char *source, const char *fmt);
|
||||
void unreal_cmd_sqline(const char *mask, const char *reason);
|
||||
void unreal_cmd_squit(const char *servname, const char *message);
|
||||
void unreal_cmd_svso(const char *source, const char *nick, const char *flag);
|
||||
void unreal_cmd_chg_nick(const char *oldnick, const char *newnick);
|
||||
void unreal_cmd_svsnick(const char *source, const char *guest, time_t when);
|
||||
void unreal_cmd_vhost_on(const char *nick, const char *vIdent, const char *vhost);
|
||||
void unreal_cmd_connect(int servernum);
|
||||
void unreal_cmd_svshold(const char *nick);
|
||||
void unreal_cmd_release_svshold(const char *nick);
|
||||
void unreal_cmd_unsgline(const char *mask);
|
||||
void unreal_cmd_unszline(const char *mask);
|
||||
void unreal_cmd_szline(const char *mask, const char *reason, const char *whom);
|
||||
void unreal_cmd_sgline(const char *mask, const char *reason);
|
||||
void unreal_cmd_unban(const char *name, const char *nick);
|
||||
void unreal_cmd_svsmode_chan(const char *name, const char *mode, const char *nick);
|
||||
void unreal_cmd_svid_umode(const char *nick, time_t ts);
|
||||
void unreal_cmd_nc_change(User * u);
|
||||
void unreal_cmd_svid_umode2(User * u, const char *ts);
|
||||
void unreal_cmd_svid_umode3(User * u, const char *ts);
|
||||
void unreal_cmd_eob();
|
||||
int unreal_flood_mode_check(const char *value);
|
||||
void unreal_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int unreal_valid_nick(const char *nick);
|
||||
void unreal_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
|
||||
class UnrealIRCdProto : public IRCDProtoNew {
|
||||
public:
|
||||
void cmd_svsnoop(const char *, int);
|
||||
void cmd_remove_akill(const char *, const char *);
|
||||
} ircd_proto;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
SRCS = anopesmtp.c db-merger.c epona2anope.c
|
||||
SRCS = anopesmtp.c db-merger.c
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
|
||||
INCLUDES = ../../include/services.h
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
include ../../Makefile.inc.win32
|
||||
|
||||
SRCS=anopesmtp.c epona2anope.c db-merger.c
|
||||
SRCS=anopesmtp.c db-merger.c
|
||||
OBJECTS= $(SRCS:.c=.exe)
|
||||
CFLAGS=$(CFLAGS) /I"../../include"
|
||||
LFLAGS=/link wsock32.lib $(LIBS) $(LFLAGS)
|
||||
|
||||
@@ -181,7 +181,7 @@ char *strip(char *buf)
|
||||
*/
|
||||
char *lftocrlf(char *buf)
|
||||
{
|
||||
char *result = malloc(strlen(buf) + 2);
|
||||
char *result = (char *)malloc(strlen(buf) + 2);
|
||||
strip(buf);
|
||||
strcpy(result, buf);
|
||||
strcat(result, "\r\n");
|
||||
@@ -193,7 +193,7 @@ char *lftocrlf(char *buf)
|
||||
/* Add a header to the list */
|
||||
void smtp_add_header(char *header)
|
||||
{
|
||||
struct smtp_header *head = malloc(sizeof(struct smtp_header));
|
||||
struct smtp_header *head = (struct smtp_header *)malloc(sizeof(struct smtp_header));
|
||||
|
||||
head->header = lftocrlf(header);
|
||||
head->next = NULL;
|
||||
@@ -276,7 +276,7 @@ void smtp_add_body_line(char *line)
|
||||
{
|
||||
struct smtp_body_line *body;
|
||||
|
||||
body = malloc(sizeof(struct smtp_body_line));
|
||||
body = (struct smtp_body_line *)malloc(sizeof(struct smtp_body_line));
|
||||
|
||||
body->line = lftocrlf(line);
|
||||
body->next = NULL;
|
||||
|
||||
+29
-29
@@ -362,7 +362,7 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
nc = calloc(1, sizeof(NickCore));
|
||||
nc = (NickCore *)calloc(1, sizeof(NickCore));
|
||||
nc->aliascount = 0;
|
||||
nc->unused = 0;
|
||||
|
||||
@@ -382,7 +382,7 @@ int main(int argc, char *argv[])
|
||||
READ(read_uint16(&nc->accesscount, f));
|
||||
if (nc->accesscount) {
|
||||
char **access;
|
||||
access = calloc(sizeof(char *) * nc->accesscount, 1);
|
||||
access = (char **)calloc(sizeof(char *) * nc->accesscount, 1);
|
||||
nc->access = access;
|
||||
for (j = 0; j < nc->accesscount; j++, access++)
|
||||
READ(read_string(access, f));
|
||||
@@ -391,7 +391,7 @@ int main(int argc, char *argv[])
|
||||
READ(read_int16(&nc->memos.memomax, f));
|
||||
if (nc->memos.memocount) {
|
||||
Memo *memos;
|
||||
memos = calloc(sizeof(Memo) * nc->memos.memocount, 1);
|
||||
memos = (Memo *)calloc(sizeof(Memo) * nc->memos.memocount, 1);
|
||||
nc->memos.memos = memos;
|
||||
for (j = 0; j < nc->memos.memocount; j++, memos++) {
|
||||
READ(read_uint32(&memos->number, f));
|
||||
@@ -421,7 +421,7 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
na = calloc(1, sizeof(NickAlias));
|
||||
na = (NickAlias *)calloc(1, sizeof(NickAlias));
|
||||
|
||||
READ(read_string(&na->nick, f));
|
||||
READ(read_string(&na->last_usermask, f));
|
||||
@@ -468,7 +468,7 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
nc = calloc(1, sizeof(NickCore));
|
||||
nc = (NickCore *)calloc(1, sizeof(NickCore));
|
||||
READ(read_string(&nc->display, f));
|
||||
READ(read_string(&nc->pass, f));
|
||||
READ(read_string(&nc->email, f));
|
||||
@@ -496,7 +496,7 @@ int main(int argc, char *argv[])
|
||||
READ(read_uint16(&nc->accesscount, f));
|
||||
if (nc->accesscount) {
|
||||
char **access;
|
||||
access = calloc(sizeof(char *) * nc->accesscount, 1);
|
||||
access = (char **)calloc(sizeof(char *) * nc->accesscount, 1);
|
||||
nc->access = access;
|
||||
for (j = 0; j < nc->accesscount; j++, access++)
|
||||
READ(read_string(access, f));
|
||||
@@ -505,7 +505,7 @@ int main(int argc, char *argv[])
|
||||
READ(read_int16(&nc->memos.memomax, f));
|
||||
if (nc->memos.memocount) {
|
||||
Memo *memos;
|
||||
memos = calloc(sizeof(Memo) * nc->memos.memocount, 1);
|
||||
memos = (Memo *)calloc(sizeof(Memo) * nc->memos.memocount, 1);
|
||||
nc->memos.memos = memos;
|
||||
for (j = 0; j < nc->memos.memocount; j++, memos++) {
|
||||
READ(read_uint32(&memos->number, f));
|
||||
@@ -532,7 +532,7 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
na = calloc(1, sizeof(NickAlias));
|
||||
na = (NickAlias *)calloc(1, sizeof(NickAlias));
|
||||
|
||||
READ(read_string(&na->nick, f));
|
||||
READ(read_string(&na->last_usermask, f));
|
||||
@@ -730,7 +730,7 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
ci = calloc(sizeof(ChannelInfo), 1);
|
||||
ci = (ChannelInfo *)calloc(sizeof(ChannelInfo), 1);
|
||||
*last = ci;
|
||||
last = &ci->next;
|
||||
ci->prev = prev;
|
||||
@@ -761,7 +761,7 @@ int main(int argc, char *argv[])
|
||||
ci->bantype = tmp16;
|
||||
READ(read_int16(&tmp16, f));
|
||||
n_levels = tmp16;
|
||||
ci->levels = calloc(36 * sizeof(*ci->levels), 1);
|
||||
ci->levels = (int16 *)calloc(36 * sizeof(*ci->levels), 1);
|
||||
for (j = 0; j < n_levels; j++) {
|
||||
if (j < 36)
|
||||
READ(read_int16(&ci->levels[j], f));
|
||||
@@ -770,7 +770,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
READ(read_uint16(&ci->accesscount, f));
|
||||
if (ci->accesscount) {
|
||||
ci->access = calloc(ci->accesscount, sizeof(ChanAccess));
|
||||
ci->access = (ChanAccess *)calloc(ci->accesscount, sizeof(ChanAccess));
|
||||
for (j = 0; j < ci->accesscount; j++) {
|
||||
READ(read_uint16(&ci->access[j].in_use, f));
|
||||
if (ci->access[j].in_use) {
|
||||
@@ -791,7 +791,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
READ(read_uint16(&ci->akickcount, f));
|
||||
if (ci->akickcount) {
|
||||
ci->akick = calloc(ci->akickcount, sizeof(AutoKick));
|
||||
ci->akick = (AutoKick *)calloc(ci->akickcount, sizeof(AutoKick));
|
||||
for (j = 0; j < ci->akickcount; j++) {
|
||||
SAFE(read_uint16(&ci->akick[j].flags, f));
|
||||
if (ci->akick[j].flags & 0x0001) {
|
||||
@@ -833,7 +833,7 @@ int main(int argc, char *argv[])
|
||||
READ(read_int16(&ci->memos.memomax, f));
|
||||
if (ci->memos.memocount) {
|
||||
Memo *memos;
|
||||
memos = calloc(sizeof(Memo) * ci->memos.memocount, 1);
|
||||
memos = (Memo *)calloc(sizeof(Memo) * ci->memos.memocount, 1);
|
||||
ci->memos.memos = memos;
|
||||
for (j = 0; j < ci->memos.memocount; j++, memos++) {
|
||||
READ(read_uint32(&memos->number, f));
|
||||
@@ -852,7 +852,7 @@ int main(int argc, char *argv[])
|
||||
ci->botflags = tmp32;
|
||||
READ(read_int16(&tmp16, f));
|
||||
n_ttb = tmp16;
|
||||
ci->ttb = calloc(2 * 8, 1);
|
||||
ci->ttb = (int16 *)calloc(2 * 8, 1);
|
||||
for (j = 0; j < n_ttb; j++) {
|
||||
if (j < 8)
|
||||
READ(read_int16(&ci->ttb[j], f));
|
||||
@@ -874,7 +874,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
READ(read_uint16(&ci->bwcount, f));
|
||||
if (ci->bwcount) {
|
||||
ci->badwords = calloc(ci->bwcount, sizeof(BadWord));
|
||||
ci->badwords = (BadWord *)calloc(ci->bwcount, sizeof(BadWord));
|
||||
for (j = 0; j < ci->bwcount; j++) {
|
||||
SAFE(read_uint16(&ci->badwords[j].in_use, f));
|
||||
if (ci->badwords[j].in_use) {
|
||||
@@ -918,7 +918,7 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
ci = calloc(sizeof(ChannelInfo), 1);
|
||||
ci = (ChannelInfo *)calloc(sizeof(ChannelInfo), 1);
|
||||
READ(read_buffer(ci->name, f));
|
||||
READ(read_string(&ci->founder, f));
|
||||
READ(read_string(&ci->successor, f));
|
||||
@@ -945,7 +945,7 @@ int main(int argc, char *argv[])
|
||||
ci->bantype = tmp16;
|
||||
READ(read_int16(&tmp16, f));
|
||||
n_levels = tmp16;
|
||||
ci->levels = calloc(36 * sizeof(*ci->levels), 1);
|
||||
ci->levels = (int16 *)calloc(36 * sizeof(*ci->levels), 1);
|
||||
for (j = 0; j < n_levels; j++) {
|
||||
if (j < 36)
|
||||
READ(read_int16(&ci->levels[j], f));
|
||||
@@ -954,7 +954,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
READ(read_uint16(&ci->accesscount, f));
|
||||
if (ci->accesscount) {
|
||||
ci->access = calloc(ci->accesscount, sizeof(ChanAccess));
|
||||
ci->access = (ChanAccess *)calloc(ci->accesscount, sizeof(ChanAccess));
|
||||
for (j = 0; j < ci->accesscount; j++) {
|
||||
READ(read_uint16(&ci->access[j].in_use, f));
|
||||
if (ci->access[j].in_use) {
|
||||
@@ -975,7 +975,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
READ(read_uint16(&ci->akickcount, f));
|
||||
if (ci->akickcount) {
|
||||
ci->akick = calloc(ci->akickcount, sizeof(AutoKick));
|
||||
ci->akick = (AutoKick *)calloc(ci->akickcount, sizeof(AutoKick));
|
||||
for (j = 0; j < ci->akickcount; j++) {
|
||||
SAFE(read_uint16(&ci->akick[j].flags, f));
|
||||
if (ci->akick[j].flags & 0x0001) {
|
||||
@@ -1017,7 +1017,7 @@ int main(int argc, char *argv[])
|
||||
READ(read_int16(&ci->memos.memomax, f));
|
||||
if (ci->memos.memocount) {
|
||||
Memo *memos;
|
||||
memos = calloc(sizeof(Memo) * ci->memos.memocount, 1);
|
||||
memos = (Memo *)calloc(sizeof(Memo) * ci->memos.memocount, 1);
|
||||
ci->memos.memos = memos;
|
||||
for (j = 0; j < ci->memos.memocount; j++, memos++) {
|
||||
READ(read_uint32(&memos->number, f));
|
||||
@@ -1036,7 +1036,7 @@ int main(int argc, char *argv[])
|
||||
ci->botflags = tmp32;
|
||||
READ(read_int16(&tmp16, f));
|
||||
n_ttb = tmp16;
|
||||
ci->ttb = calloc(32, 1);
|
||||
ci->ttb = (int16 *)calloc(32, 1);
|
||||
for (j = 0; j < n_ttb; j++) {
|
||||
if (j < 8)
|
||||
READ(read_int16(&ci->ttb[j], f));
|
||||
@@ -1058,7 +1058,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
READ(read_uint16(&ci->bwcount, f));
|
||||
if (ci->bwcount) {
|
||||
ci->badwords = calloc(ci->bwcount, sizeof(BadWord));
|
||||
ci->badwords = (BadWord *)calloc(ci->bwcount, sizeof(BadWord));
|
||||
for (j = 0; j < ci->bwcount; j++) {
|
||||
SAFE(read_uint16(&ci->badwords[j].in_use, f));
|
||||
if (ci->badwords[j].in_use) {
|
||||
@@ -1384,7 +1384,7 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
bi = calloc(sizeof(BotInfo), 1);
|
||||
bi = (BotInfo *)calloc(sizeof(BotInfo), 1);
|
||||
READ(read_string(&bi->nick, f));
|
||||
READ(read_string(&bi->user, f));
|
||||
READ(read_string(&bi->host, f));
|
||||
@@ -1415,7 +1415,7 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
bi = calloc(sizeof(BotInfo), 1);
|
||||
bi = (BotInfo *)calloc(sizeof(BotInfo), 1);
|
||||
READ(read_string(&bi->nick, f));
|
||||
READ(read_string(&bi->user, f));
|
||||
READ(read_string(&bi->host, f));
|
||||
@@ -1517,7 +1517,7 @@ int main(int argc, char *argv[])
|
||||
printf("Invalid format in %s.\n", HOST_DB_1);
|
||||
exit(0);
|
||||
}
|
||||
hc = calloc(1, sizeof(HostCore));
|
||||
hc = (HostCore *)calloc(1, sizeof(HostCore));
|
||||
READ(read_string(&hc->nick, f));
|
||||
READ(read_string(&hc->vIdent, f));
|
||||
READ(read_string(&hc->vHost, f));
|
||||
@@ -1548,7 +1548,7 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
collision = 0;
|
||||
hc = calloc(1, sizeof(HostCore));
|
||||
hc = (HostCore *)calloc(1, sizeof(HostCore));
|
||||
READ(read_string(&hc->nick, f));
|
||||
READ(read_string(&hc->vIdent, f));
|
||||
READ(read_string(&hc->vHost, f));
|
||||
@@ -1651,7 +1651,7 @@ dbFILE *open_db_read(const char *service, const char *filename, int version)
|
||||
FILE *fp;
|
||||
int myversion;
|
||||
|
||||
f = calloc(sizeof(*f), 1);
|
||||
f = (dbFILE *)calloc(sizeof(*f), 1);
|
||||
if (!f) {
|
||||
printf("Can't allocate memory for %s database %s.\n", service, filename);
|
||||
exit(0);
|
||||
@@ -1682,7 +1682,7 @@ dbFILE *open_db_write(const char *service, const char *filename, int version)
|
||||
dbFILE *f;
|
||||
int fd;
|
||||
|
||||
f = calloc(sizeof(*f), 1);
|
||||
f = (dbFILE *)calloc(sizeof(*f), 1);
|
||||
if (!f) {
|
||||
printf("Can't allocate memory for %s database %s.\n", service, filename);
|
||||
exit(0);
|
||||
@@ -1829,7 +1829,7 @@ int read_string(char **ret, dbFILE * f)
|
||||
*ret = NULL;
|
||||
return 0;
|
||||
}
|
||||
s = calloc(len, 1);
|
||||
s = (char *)calloc(len, 1);
|
||||
if (len != fread(s, 1, len, f->fp)) {
|
||||
free(s);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user