mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 01:23:12 +02:00
Rip out support for servers lacking NOQUIT.
This commit is contained in:
@@ -331,7 +331,6 @@ typedef enum ClientStatus {
|
||||
* Note that client protocol extensions have been moved
|
||||
* to the ClientCapability API which uses acptr->local->caps.
|
||||
*/
|
||||
#define PROTO_NOQUIT 0x000001 /* Negotiated NOQUIT protocol */
|
||||
#define PROTO_SJOIN 0x000002 /* Negotiated SJOIN protocol */
|
||||
#define PROTO_SJOIN2 0x000008 /* Negotiated SJOIN2 protocol */
|
||||
#define PROTO_UMODE2 0x000010 /* Negotiated UMODE2 protocol */
|
||||
@@ -508,7 +507,6 @@ typedef enum ClientStatus {
|
||||
#define CHECKPROTO(x,y) (checkprotoflags(x, y, __FILE__, __LINE__))
|
||||
#endif
|
||||
|
||||
#define DontSendQuit(x) (CHECKPROTO(x, PROTO_NOQUIT))
|
||||
#define SupportSJOIN(x) (CHECKPROTO(x, PROTO_SJOIN))
|
||||
#define SupportNICKIP(x) (CHECKPROTO(x, PROTO_NICKIP))
|
||||
#define SupportSJOIN2(x) (CHECKPROTO(x, PROTO_SJOIN2))
|
||||
@@ -524,7 +522,6 @@ typedef enum ClientStatus {
|
||||
#define SupportMTAGS(x) (CHECKPROTO(x, PROTO_MTAGS))
|
||||
|
||||
#define SetSJOIN(x) ((x)->local->proto |= PROTO_SJOIN)
|
||||
#define SetNoQuit(x) ((x)->local->proto |= PROTO_NOQUIT)
|
||||
#define SetSJOIN2(x) ((x)->local->proto |= PROTO_SJOIN2)
|
||||
#define SetUMODE2(x) ((x)->local->proto |= PROTO_UMODE2)
|
||||
#define SetVL(x) ((x)->local->proto |= PROTO_VL)
|
||||
@@ -537,7 +534,6 @@ typedef enum ClientStatus {
|
||||
#define SetMTAGS(x) ((x)->local->proto |= PROTO_MTAGS)
|
||||
|
||||
#define ClearSJOIN(x) ((x)->local->proto &= ~PROTO_SJOIN)
|
||||
#define ClearNoQuit(x) ((x)->local->proto &= ~PROTO_NOQUIT)
|
||||
#define ClearSJOIN2(x) ((x)->local->proto &= ~PROTO_SJOIN2)
|
||||
#define ClearUMODE2(x) ((x)->local->proto &= ~PROTO_UMODE2)
|
||||
#define ClearVL(x) ((x)->local->proto &= ~PROTO_VL)
|
||||
|
||||
+1
-12
@@ -382,17 +382,6 @@ static void recurse_send_quits(Client *cptr, Client *client, Client *from, Clien
|
||||
if (!MyConnect(to))
|
||||
return; /* We shouldn't even be called for non-remotes */
|
||||
|
||||
if (!CHECKPROTO(to, PROTO_NOQUIT))
|
||||
{
|
||||
list_for_each_entry_safe(acptr, next, &client_list, client_node)
|
||||
{
|
||||
if (acptr->srvptr != client)
|
||||
continue;
|
||||
|
||||
sendto_one(to, NULL, ":%s QUIT :%s", acptr->name, splitstr);
|
||||
}
|
||||
}
|
||||
|
||||
list_for_each_entry_safe(acptr, next, &global_server_list, client_node)
|
||||
{
|
||||
if (acptr->srvptr != client)
|
||||
@@ -401,7 +390,7 @@ static void recurse_send_quits(Client *cptr, Client *client, Client *from, Clien
|
||||
recurse_send_quits(cptr, acptr, from, to, mtags, comment, splitstr);
|
||||
}
|
||||
|
||||
if ((cptr == client && to != from) || !CHECKPROTO(to, PROTO_NOQUIT))
|
||||
if (cptr == client && to != from)
|
||||
sendto_one(to, mtags, "SQUIT %s :%s", client->name, comment);
|
||||
}
|
||||
|
||||
|
||||
@@ -94,10 +94,6 @@ CMD_FUNC(cmd_protoctl)
|
||||
{
|
||||
SetCapability(client, "userhost-in-names");
|
||||
}
|
||||
else if (!strcmp(name, "NOQUIT"))
|
||||
{
|
||||
SetNoQuit(client);
|
||||
}
|
||||
else if (!strcmp(name, "SJOIN"))
|
||||
{
|
||||
SetSJOIN(client);
|
||||
|
||||
Reference in New Issue
Block a user