X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/3d0b24ce4c7ef522cac7ad06ee5340e3e243c46c..0c835e0f71608e76dc4f5805233a79d6e6850c9f:/src/proto-p10.c diff --git a/src/proto-p10.c b/src/proto-p10.c index fbfc539..1f82782 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -714,6 +714,16 @@ irc_mode(struct userNode *from, struct chanNode *target, const char *modes) target->name, modes, target->timestamp); } +/* Added to allow services to mode users + 2005 - 8 - 10 by Life4Christ +*/ +void +irc_umode(struct userNode *target, const char *modes) +{ + putsock("%s " P10_MODE " %s %s ",self->numeric,target->nick, modes); +} + + void irc_invite(struct userNode *from, struct userNode *who, struct chanNode *to) { @@ -1705,6 +1715,8 @@ init_parse(void) dict_insert(irc_func_dict, TOK_MARK, cmd_dummy); /* Ignore privs */ dict_insert(irc_func_dict, TOK_PRIVS, cmd_dummy); + /* Ignore remote luser */ + dict_insert(irc_func_dict, TOK_LUSERS, cmd_dummy); /* We have reliable clock! Always! Wraaa! */ dict_insert(irc_func_dict, CMD_SETTIME, cmd_dummy); dict_insert(irc_func_dict, TOK_SETTIME, cmd_dummy); @@ -2134,8 +2146,9 @@ DelUser(struct userNode* user, struct userNode *killer, int announce, const char free_user(user); } +static void call_oper_funcs(struct userNode *user); + void mod_usermode(struct userNode *user, const char *mode_change) { - static void call_oper_funcs(struct userNode *user); int add = 1; const char *word = mode_change;