|
@@ -11,10 +11,7 @@
|
|
|
|
|
|
|
|
static Function *global = NULL;
|
|
static Function *global = NULL;
|
|
|
|
|
|
|
|
-static int setstatic;
|
|
|
|
|
static int use_info;
|
|
static int use_info;
|
|
|
-static char chanfile[121];
|
|
|
|
|
-static int chan_hack;
|
|
|
|
|
static int quiet_save;
|
|
static int quiet_save;
|
|
|
static char glob_chanmode[64]; /* Default chanmode (drummer,990731) */
|
|
static char glob_chanmode[64]; /* Default chanmode (drummer,990731) */
|
|
|
static char *lastdeletedmask;
|
|
static char *lastdeletedmask;
|
|
@@ -653,6 +650,7 @@ static void channels_report(int idx, int details)
|
|
|
if (details) {
|
|
if (details) {
|
|
|
s[0] = 0;
|
|
s[0] = 0;
|
|
|
i = 0;
|
|
i = 0;
|
|
|
|
|
+ i += my_strcpy(s + i, "dynamic ");
|
|
|
if (channel_enforcebans(chan))
|
|
if (channel_enforcebans(chan))
|
|
|
i += my_strcpy(s + i, "enforcebans ");
|
|
i += my_strcpy(s + i, "enforcebans ");
|
|
|
if (channel_dynamicbans(chan))
|
|
if (channel_dynamicbans(chan))
|
|
@@ -671,8 +669,6 @@ static void channels_report(int idx, int details)
|
|
|
i += my_strcpy(s + i, "revengebot ");
|
|
i += my_strcpy(s + i, "revengebot ");
|
|
|
if (channel_secret(chan))
|
|
if (channel_secret(chan))
|
|
|
i += my_strcpy(s + i, "secret ");
|
|
i += my_strcpy(s + i, "secret ");
|
|
|
- if (!channel_static(chan))
|
|
|
|
|
- i += my_strcpy(s + i, "dynamic ");
|
|
|
|
|
if (channel_cycle(chan))
|
|
if (channel_cycle(chan))
|
|
|
i += my_strcpy(s + i, "cycle ");
|
|
i += my_strcpy(s + i, "cycle ");
|
|
|
#ifdef S_IRCNET
|
|
#ifdef S_IRCNET
|
|
@@ -873,7 +869,6 @@ static tcl_coups mychan_tcl_coups[] =
|
|
|
|
|
|
|
|
static tcl_strings my_tcl_strings[] =
|
|
static tcl_strings my_tcl_strings[] =
|
|
|
{
|
|
{
|
|
|
- {"chanfile", chanfile, 120, STR_PROTECT},
|
|
|
|
|
{"global-chanmode", glob_chanmode, 64, 0},
|
|
{"global-chanmode", glob_chanmode, 64, 0},
|
|
|
{NULL, NULL, 0, 0}
|
|
{NULL, NULL, 0, 0}
|
|
|
};
|
|
};
|
|
@@ -890,7 +885,6 @@ static char *channels_close()
|
|
|
rem_tcl_strings(my_tcl_strings);
|
|
rem_tcl_strings(my_tcl_strings);
|
|
|
rem_tcl_ints(my_tcl_ints);
|
|
rem_tcl_ints(my_tcl_ints);
|
|
|
rem_tcl_coups(mychan_tcl_coups);
|
|
rem_tcl_coups(mychan_tcl_coups);
|
|
|
- del_hook(HOOK_SWITCH_STATIC, (Function) switch_static);
|
|
|
|
|
del_hook(HOOK_USERFILE, (Function) channels_writeuserfile);
|
|
del_hook(HOOK_USERFILE, (Function) channels_writeuserfile);
|
|
|
del_hook(HOOK_MINUTELY, (Function) check_expired_bans);
|
|
del_hook(HOOK_MINUTELY, (Function) check_expired_bans);
|
|
|
#ifdef S_IRCNET
|
|
#ifdef S_IRCNET
|
|
@@ -1010,11 +1004,8 @@ char *channels_start(Function * global_funcs)
|
|
|
gfld_ctcp_thr = 0;
|
|
gfld_ctcp_thr = 0;
|
|
|
gfld_ctcp_time = 0;
|
|
gfld_ctcp_time = 0;
|
|
|
global_idle_kick = 0;
|
|
global_idle_kick = 0;
|
|
|
- setstatic = 0;
|
|
|
|
|
lastdeletedmask = 0;
|
|
lastdeletedmask = 0;
|
|
|
use_info = 1;
|
|
use_info = 1;
|
|
|
- strcpy(chanfile, "chanfile");
|
|
|
|
|
- chan_hack = 0;
|
|
|
|
|
quiet_save = 0;
|
|
quiet_save = 0;
|
|
|
strcpy(glob_chanmode, "nt");
|
|
strcpy(glob_chanmode, "nt");
|
|
|
udef = NULL;
|
|
udef = NULL;
|
|
@@ -1048,7 +1039,6 @@ char *channels_start(Function * global_funcs)
|
|
|
"-private "
|
|
"-private "
|
|
|
"-fastop ");
|
|
"-fastop ");
|
|
|
module_register(MODULE_NAME, channels_table, 1, 0);
|
|
module_register(MODULE_NAME, channels_table, 1, 0);
|
|
|
- add_hook(HOOK_SWITCH_STATIC, (Function) switch_static);
|
|
|
|
|
#ifdef LEAF
|
|
#ifdef LEAF
|
|
|
add_hook(HOOK_MINUTELY, (Function) check_limitraise);
|
|
add_hook(HOOK_MINUTELY, (Function) check_limitraise);
|
|
|
#endif
|
|
#endif
|
|
@@ -1073,6 +1063,5 @@ char *channels_start(Function * global_funcs)
|
|
|
my_tcl_ints[0].val = &share_greet;
|
|
my_tcl_ints[0].val = &share_greet;
|
|
|
add_tcl_ints(my_tcl_ints);
|
|
add_tcl_ints(my_tcl_ints);
|
|
|
add_tcl_coups(mychan_tcl_coups);
|
|
add_tcl_coups(mychan_tcl_coups);
|
|
|
- setstatic = 1;
|
|
|
|
|
return NULL;
|
|
return NULL;
|
|
|
}
|
|
}
|