Example #1
0
/* This is a simple example of how to use dynamic channel modes.
 * Not tested enough yet, use at own risk.
 * -- dwr
 */
static int
_modinit(void)
{
	mymode = cflag_add('O', chm_staff);
	if (mymode == 0)
		return -1;
	return 0;
}
Example #2
0
static int
_modinit(void)
{
	mode_nonotice = cflag_add('T', chm_simple);
	if (mode_nonotice == 0)
		return -1;

	return 0;
}
Example #3
0
static int
_modinit(void)
{
    mymode = cflag_add('M', chm_hidden);
    if (mymode == 0)
        return -1;

    return 0;
}
Example #4
0
static int
_modinit(void)
{
    mymode = cflag_add('c', chm_simple);
    if (mymode == 0)
        return -1;

    return 0;
}
Example #5
0
static int
_modinit(void)
{
	mymode = cflag_add('N', chm_netadminstaff);
	if (mymode == 0)
		return -1;

	return 0;
}
Example #6
0
static int
_modinit(void)
{
	mode_nocolour = cflag_add('c', chm_simple);
	if (mode_nocolour == 0)
		return -1;

	return 0;
}
Example #7
0
static int
_modinit(void)
{
    /* initalize the +N cmode */
    mymode = cflag_add('N', chm_simple);
    if (mymode == 0)
        return -1;

    return 0;
}
Example #8
0
static
int modinit(void)
{
    chm_spamfilter = cflag_add(MODE_SPAMFILTER, CHM_D, chm_simple);
    if(!chm_spamfilter)
        return -1;

    add_top_conf("spamfilter", NULL, NULL, conf_spamfilter);
    return 0;
}