X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fs_user.c;h=a21f5e2b791db8a316ba33eb1df43d9185c8d1f5;hb=ee0e47cc59291034bf96bc27fa685afb0ecd9817;hp=ecedb0629085a789566bed87b7aab699568ac1be;hpb=80830871e274ebdbadc3edc52e73b6a3a6621447;p=ircu2.10.12-pk.git diff --git a/ircd/s_user.c b/ircd/s_user.c index ecedb06..a21f5e2 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -984,7 +984,6 @@ int set_user_mode(struct Client *cptr, struct Client *sptr, int parc, char *parv { char** p; char* m; - struct Client *acptr; int what; int i; struct Flags setflags; @@ -996,27 +995,6 @@ int set_user_mode(struct Client *cptr, struct Client *sptr, int parc, char *parv what = MODE_ADD; - if (parc < 2) - return need_more_params(sptr, "MODE"); - - if (!(acptr = FindUser(parv[1]))) - { - if (MyConnect(sptr)) - send_reply(sptr, ERR_NOSUCHCHANNEL, parv[1]); - return 0; - } - - if (IsServer(sptr) || sptr != acptr) - { - if (IsServer(cptr)) - sendwallto_group_butone(&me, WALL_WALLOPS, 0, - "MODE for User %s from %s!%s", parv[1], - cli_name(cptr), cli_name(sptr)); - else - send_reply(sptr, ERR_USERSDONTMATCH); - return 0; - } - if (parc < 3) { m = buf;