[svn] - sno_channeljoin: implements snomask +j and sends channel join notices there from local users

This commit is contained in:
nenolod 2007-05-23 21:16:02 -07:00
parent 446d88ddd4
commit 59e2698a9f
6 changed files with 64 additions and 5 deletions

View File

@ -1,3 +1,13 @@
nenolod 2007/05/24 04:02:33 UTC (20070524-3472)
Log:
- update config files
Changes: Modified:
+1 -0 trunk/doc/example.conf (File Modified)
+2 -0 trunk/doc/reference.conf (File Modified)
nenolod 2007/05/24 04:01:12 UTC (20070524-3470) nenolod 2007/05/24 04:01:12 UTC (20070524-3470)
Log: Log:
- fold in whois_notice_global functionality. - fold in whois_notice_global functionality.

View File

@ -4,7 +4,7 @@
* Copyright (C) 2002-2005 ircd-ratbox development team * Copyright (C) 2002-2005 ircd-ratbox development team
* Copyright (C) 2005-2006 charybdis development team * Copyright (C) 2005-2006 charybdis development team
* *
* $Id: example.conf 3472 2007-05-24 04:02:33Z nenolod $ * $Id: example.conf 3474 2007-05-24 04:16:02Z nenolod $
* *
* See reference.conf for more information. * See reference.conf for more information.
*/ */
@ -23,6 +23,7 @@
#loadmodule "extensions/m_findforwards.so"; #loadmodule "extensions/m_findforwards.so";
#loadmodule "extensions/m_identify.so"; #loadmodule "extensions/m_identify.so";
#loadmodule "extensions/no_oper_invis.so"; #loadmodule "extensions/no_oper_invis.so";
#loadmodule "extensions/sno_channeljoin.so";
#loadmodule "extensions/sno_farconnect.so"; #loadmodule "extensions/sno_farconnect.so";
#loadmodule "extensions/sno_globalkline.so"; #loadmodule "extensions/sno_globalkline.so";
#loadmodule "extensions/sno_globaloper.so"; #loadmodule "extensions/sno_globaloper.so";

View File

@ -6,7 +6,7 @@
* *
* Written by ejb, wcampbel, db, leeh and others * Written by ejb, wcampbel, db, leeh and others
* *
* $Id: reference.conf 3472 2007-05-24 04:02:33Z nenolod $ * $Id: reference.conf 3474 2007-05-24 04:16:02Z nenolod $
*/ */
/* IMPORTANT NOTES: /* IMPORTANT NOTES:
@ -54,10 +54,11 @@
* Find channel forwards -- m_findforwards.so * Find channel forwards -- m_findforwards.so
* /identify support -- m_identify.so * /identify support -- m_identify.so
* Opers cannot be invisible (umode +i) -- no_oper_invis.so * Opers cannot be invisible (umode +i) -- no_oper_invis.so
* Channel join notices (snomask +j) -- sno_channeljoin.so
* Far connection notices (snomask +F) -- sno_farconnect.so * Far connection notices (snomask +F) -- sno_farconnect.so
* Remote k/d/g/x line active notices -- sno_globalkline.so * Remote k/d/g/x line active notices -- sno_globalkline.so
* Remote oper up notices -- sno_globaloper.so * Remote oper up notices -- sno_globaloper.so
* /whois notifications -- sno_whois.so * /whois notifications (snomask +W) -- sno_whois.so
*/ */
#loadmodule "extensions/createauthonly.so"; #loadmodule "extensions/createauthonly.so";
#loadmodule "extensions/extb_account.so"; #loadmodule "extensions/extb_account.so";
@ -72,6 +73,7 @@
#loadmodule "extensions/m_findforwards.so"; #loadmodule "extensions/m_findforwards.so";
#loadmodule "extensions/m_identify.so"; #loadmodule "extensions/m_identify.so";
#loadmodule "extensions/no_oper_invis.so"; #loadmodule "extensions/no_oper_invis.so";
#loadmodule "extensions/sno_channeljoin.so";
#loadmodule "extensions/sno_farconnect.so"; #loadmodule "extensions/sno_farconnect.so";
#loadmodule "extensions/sno_globalkline.so"; #loadmodule "extensions/sno_globalkline.so";
#loadmodule "extensions/sno_globaloper.so"; #loadmodule "extensions/sno_globaloper.so";

View File

@ -1,7 +1,7 @@
# #
# Makefile.in for ircd/contrib # Makefile.in for ircd/contrib
# #
# $Id: Makefile.in 3470 2007-05-24 04:01:12Z nenolod $ # $Id: Makefile.in 3474 2007-05-24 04:16:02Z nenolod $
# #
CC = @CC@ CC = @CC@
RM = @RM@ RM = @RM@
@ -37,6 +37,7 @@ SRCS = \
extb_extgecos.c \ extb_extgecos.c \
hurt.c \ hurt.c \
ip_cloaking.c \ ip_cloaking.c \
sno_channeljoin.c \
sno_farconnect.c \ sno_farconnect.c \
sno_globalkline.c \ sno_globalkline.c \
sno_globaloper.c \ sno_globaloper.c \

View File

@ -0,0 +1,45 @@
/*
* +j snomask: Channel join notices.
* --nenolod
*
* To be discussed:
* + part notices?
*
* $Id: sno_channeljoin.c 3474 2007-05-24 04:16:02Z nenolod $
*/
#include "stdinc.h"
#include "modules.h"
#include "hook.h"
#include "client.h"
#include "ircd.h"
#include "send.h"
static void
show_channeljoin(hook_data_channel_activity *info)
{
sendto_realops_snomask(snomask_modes['j'], L_ALL,
"%s (%s@%s) has joined channel %s", info->client->name,
info->client->username, info->client->host, info->chptr->chname);
}
mapi_hfn_list_av1 channeljoin_hfnlist[] = {
{"channel_join", (hookfn) show_channeljoin},
{NULL, NULL}
};
static int
init(void)
{
snomask_modes['j'] = find_snomask_slot();
return 0;
}
static void
fini(void)
{
snomask_modes['j'] = 0;
}
DECLARE_MODULE_AV1(sno_channeljoin, init, fini, NULL, NULL, channeljoin_hfnlist, "$Revision: 3474 $");

View File

@ -1 +1 @@
#define SERNO "20070524-3470" #define SERNO "20070524-3472"