mapi_clist_av1 webirc_clist[] = { &webirc_msgtab, NULL };
-DECLARE_MODULE_AV2(webirc, NULL, NULL, webirc_clist, NULL, NULL, NULL, NULL, webirc_desc);
+static void new_local_user(void *data);
+mapi_hfn_list_av1 webirc_hfnlist[] = {
+ { "new_local_user", (hookfn) new_local_user },
+ { NULL, NULL }
+};
+
+DECLARE_MODULE_AV2(webirc, NULL, NULL, webirc_clist, NULL, webirc_hfnlist, NULL, NULL, webirc_desc);
/*
* mr_webirc - webirc message handler
sendto_one(source_p, "NOTICE * :CGI:IRC host/IP set to %s %s", parv[3], parv[4]);
}
+
+static void
+new_local_user(void *data)
+{
+ struct Client *source_p = data;
+ struct ConfItem *aconf = source_p->localClient->att_conf;
+
+ if (!irccmp(aconf->info.name, "webirc."))
+ exit_client(source_p, source_p, &me, "Cannot log in using a WEBIRC block");
+}
if (changed)
{
update_session_deadline(source_p, NULL);
- sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s has enabled oper-override (+p)",
- get_oper_name(source_p));
}
}
else if (changed && !(source_p->umodes & user_modes['p']))
if (session_p->client != source_p)
continue;
- sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s has disabled oper-override (+p)",
- get_oper_name(session_p->client));
-
rb_dlinkDelete(n, &overriding_opers);
rb_free(session_p);
}
*c2++ = *c;
break;
default:
- if (*c < 32)
+ if ((unsigned char)*c < 32)
break;
*c2++ = *c;
last_non_space = c2;
#include "stdinc.h"
#include "ircd_defs.h"
#include "s_conf.h"
+#include "s_user.h"
#include "s_newconf.h"
#include "newconf.h"
#include "s_serv.h"
bool
rehash(bool sig)
{
+ rb_dlink_node *n;
+
hook_data_rehash hdata = { sig };
if(sig)
open_logfiles();
+ RB_DLINK_FOREACH(n, local_oper_list.head)
+ {
+ struct Client *oper = n->data;
+ const char *modeparv[4];
+ modeparv[0] = modeparv[1] = oper->name;
+ modeparv[2] = "+";
+ modeparv[3] = NULL;
+ user_mode(oper, oper, 3, modeparv);
+ }
+
call_hook(h_rehash, &hdata);
return false;
}
../ssld/ssld \
../wsockd/wsockd \
$(patsubst ../modules/%.c,../modules/.libs/%.so,$(wildcard ../modules/*.c)) \
- $(patsubst ../modules/core/%.c,../modules/core/.libs/%.so,$(wildcard ../modules/core/*.c)) \
- $(patsubst ../extensions/%.c,../extensions/.libs/%.so,$(wildcard ../extensions/*.c))
+ $(patsubst ../modules/core/%.c,../modules/core/.libs/%.so,$(wildcard ../modules/core/*.c))
./runtests -l $(abs_top_srcdir)/tests/TESTS