mirror of https://github.com/pissnet/pissircd
Get rid of modules/snomasks directory, since the snomask module API is gone.
(IRCOps can set any snomask dynamically now)pull/12/head
parent
b41311ddaf
commit
1d73db560c
@ -1,53 +0,0 @@
|
||||
#************************************************************************
|
||||
#* IRC - Internet Relay Chat, src/modules/snomasks/Makefile
|
||||
#* Copyright (C) The UnrealIRCd team
|
||||
#*
|
||||
#* This program is free software; you can redistribute it and/or modify
|
||||
#* it under the terms of the GNU General Public License as published by
|
||||
#* the Free Software Foundation; either version 1, or (at your option)
|
||||
#* any later version.
|
||||
#*
|
||||
#* This program is distributed in the hope that it will be useful,
|
||||
#* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#* GNU General Public License for more details.
|
||||
#*
|
||||
#* You should have received a copy of the GNU General Public License
|
||||
#* along with this program; if not, write to the Free Software
|
||||
#* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
#*/
|
||||
|
||||
CC = "==== DO NOT RUN MAKE FROM THIS DIRECTORY ===="
|
||||
|
||||
INCLUDES = ../../include/channel.h \
|
||||
../../include/common.h ../../include/config.h ../../include/dbuf.h \
|
||||
../../include/dynconf.h ../../include/fdlist.h ../../include/h.h \
|
||||
../../include/ircsprintf.h \
|
||||
../../include/license.h \
|
||||
../../include/modules.h ../../include/modversion.h ../../include/msg.h \
|
||||
../../include/numeric.h ../../include/dns.h \
|
||||
../../include/resource.h ../../include/setup.h \
|
||||
../../include/struct.h ../../include/sys.h \
|
||||
../../include/types.h \
|
||||
../../include/version.h ../../include/whowas.h
|
||||
|
||||
R_MODULES=\
|
||||
dccreject.so
|
||||
|
||||
MODULES=$(R_MODULES)
|
||||
MODULEFLAGS=@MODULEFLAGS@
|
||||
RM=@RM@
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .h .so
|
||||
|
||||
all: build
|
||||
|
||||
build: $(MODULES)
|
||||
|
||||
clean:
|
||||
$(RM) -f *.o *.so *~ core
|
||||
|
||||
%.so: %.c $(INCLUDES)
|
||||
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
|
||||
-o $@ $<
|
@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Show DCC SEND rejection notices (Snomask +D)
|
||||
* (C) Copyright 2000-.. Bram Matthys (Syzop) and the UnrealIRCd team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 1, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include "unrealircd.h"
|
||||
|
||||
/* Module header */
|
||||
ModuleHeader MOD_HEADER
|
||||
= {
|
||||
"snomasks/dccreject",
|
||||
"4.2",
|
||||
"Snomask +D",
|
||||
"UnrealIRCd Team",
|
||||
"unrealircd-6",
|
||||
};
|
||||
|
||||
/* Global variables */
|
||||
long SNO_DCCREJECT = 0L;
|
||||
|
||||
/* Forward declarations */
|
||||
int dccreject_dcc_denied(Client *client, const char *target, const char *realfile, const char *displayfile, ConfigItem_deny_dcc *dccdeny);
|
||||
|
||||
MOD_TEST()
|
||||
{
|
||||
return MOD_SUCCESS;
|
||||
}
|
||||
|
||||
MOD_INIT()
|
||||
{
|
||||
HookAdd(modinfo->handle, HOOKTYPE_DCC_DENIED, 0, dccreject_dcc_denied);
|
||||
|
||||
MARK_AS_OFFICIAL_MODULE(modinfo);
|
||||
return MOD_SUCCESS;
|
||||
}
|
||||
|
||||
MOD_LOAD()
|
||||
{
|
||||
return MOD_SUCCESS;
|
||||
}
|
||||
|
||||
MOD_UNLOAD()
|
||||
{
|
||||
return MOD_SUCCESS;
|
||||
}
|
||||
|
||||
int dccreject_dcc_denied(Client *client, const char *target, const char *realfile, const char *displayfile, ConfigItem_deny_dcc *dccdeny)
|
||||
{
|
||||
unreal_log(ULOG_INFO, "dcc", "DCC_REJECTED", client,
|
||||
"$client.details tried to send forbidden file $filename ($ban_reason) to $target (is blocked now)",
|
||||
log_data_string("filename", displayfile),
|
||||
log_data_string("ban_reason", dccdeny->reason),
|
||||
log_data_string("target", target));
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue