[IRC-Dev CVS] SF.net SVN: irc-dev:[206] ircd/trunk
Brought to you by:
zolty
From: <zo...@us...> - 2008-08-24 18:50:41
|
Revision: 206 http://irc-dev.svn.sourceforge.net/irc-dev/?rev=206&view=rev Author: zolty Date: 2008-08-24 18:50:51 +0000 (Sun, 24 Aug 2008) Log Message: ----------- Auto usermode al conectar Modified Paths: -------------- ircd/trunk/include/ircd_features.h ircd/trunk/ircd/client.c ircd/trunk/ircd/ircd_features.c ircd/trunk/ircd/s_user.c Modified: ircd/trunk/include/ircd_features.h =================================================================== --- ircd/trunk/include/ircd_features.h 2008-08-23 21:42:48 UTC (rev 205) +++ ircd/trunk/include/ircd_features.h 2008-08-24 18:50:51 UTC (rev 206) @@ -55,6 +55,7 @@ FEAT_RANDOM_SEED, FEAT_DEFAULT_LIST_PARAM, FEAT_NICKNAMEHISTORYLENGTH, + FEAT_AUTOUSERMODES, FEAT_HOST_HIDING, FEAT_HIDDEN_HOST, FEAT_HIDDEN_IP, Modified: ircd/trunk/ircd/client.c =================================================================== --- ircd/trunk/ircd/client.c 2008-08-23 21:42:48 UTC (rev 205) +++ ircd/trunk/ircd/client.c 2008-08-24 18:50:51 UTC (rev 206) @@ -31,6 +31,7 @@ #include "ircd_features.h" #include "ircd_log.h" #include "ircd_reply.h" +#include "ircd_string.h" #include "list.h" #include "msgq.h" #include "numeric.h" @@ -83,6 +84,9 @@ assert(cli_verify(sptr)); + if (!EmptyString(feature_str(FEAT_AUTOUSERMODES))) + return feature_str(FEAT_AUTOUSERMODES); + for (link = cli_confs(sptr); link; link = link->next) { aconf = link->value.aconf; if ((aconf->status & CONF_CLIENT) && ConfUmode(aconf)) Modified: ircd/trunk/ircd/ircd_features.c =================================================================== --- ircd/trunk/ircd/ircd_features.c 2008-08-23 21:42:48 UTC (rev 205) +++ ircd/trunk/ircd/ircd_features.c 2008-08-24 18:50:51 UTC (rev 206) @@ -387,6 +387,7 @@ F_N(RANDOM_SEED, FEAT_NODISP, random_seed_set, 0, 0, 0, 0, 0, 0), F_S(DEFAULT_LIST_PARAM, FEAT_NULL, 0, list_set_default), F_U(NICKNAMEHISTORYLENGTH, 0, 800, whowas_realloc), + F_S(AUTOUSERMODES, FEAT_NULL, 0, 0), F_B(HOST_HIDING, 0, 1, 0), F_S(HIDDEN_HOST, FEAT_CASE, "users.irc-dev.net", 0), F_S(HIDDEN_IP, 0, "127.0.0.1", 0), Modified: ircd/trunk/ircd/s_user.c =================================================================== --- ircd/trunk/ircd/s_user.c 2008-08-23 21:42:48 UTC (rev 205) +++ ircd/trunk/ircd/s_user.c 2008-08-24 18:50:51 UTC (rev 206) @@ -411,7 +411,7 @@ if (tmpstr) { char *umodev[] = { NULL, NULL, NULL, NULL }; umodev[2] = tmpstr; - set_user_mode(cptr, sptr, 1, umodev, ALLOWMODES_ANY); + set_user_mode(cptr, sptr, 3, umodev, ALLOWMODES_ANY); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |