--- l2_ch_irc.c 2001/11/07 11:37:18 1.3
+++ l2_ch_irc.c 2001/11/07 13:05:20 1.4
@@ -99,21 +99,23 @@
l2_ch_irc_t *cfg = (l2_ch_irc_t *)ctx->vp;
l2_param_t pa[12];
l2_result_t rv;
+ l2_env_t *env;
/* feed and call generic parameter parsing engine */
- L2_PARAM_SET(pa[0], progname, STRING, &cfg->cpLocalProg);
- L2_PARAM_SET(pa[1], localhost, STRING, &cfg->cpLocalHost);
- L2_PARAM_SET(pa[2], localuser, STRING, &cfg->cpLocalUser);
- L2_PARAM_SET(pa[3], nickname, STRING, &cfg->cpNickname);
- L2_PARAM_SET(pa[4], username, STRING, &cfg->cpUsername);
- L2_PARAM_SET(pa[5], realname, STRING, &cfg->cpRealname);
- L2_PARAM_SET(pa[6], channel, STRING, &cfg->cpChannel);
- L2_PARAM_SET(pa[7], join, INT, &cfg->bJoin);
- L2_PARAM_SET(pa[8], host, STRING, &cfg->cpHost);
- L2_PARAM_SET(pa[9], port, STRING, &cfg->cpPort);
- L2_PARAM_SET(pa[10], timeout, INT, &cfg->nTimeout);
+ L2_PARAM_SET(pa[0], progname, STR, &cfg->cpLocalProg);
+ L2_PARAM_SET(pa[1], localhost, STR, &cfg->cpLocalHost);
+ L2_PARAM_SET(pa[2], localuser, STR, &cfg->cpLocalUser);
+ L2_PARAM_SET(pa[3], nickname, STR, &cfg->cpNickname);
+ L2_PARAM_SET(pa[4], username, STR, &cfg->cpUsername);
+ L2_PARAM_SET(pa[5], realname, STR, &cfg->cpRealname);
+ L2_PARAM_SET(pa[6], channel, STR, &cfg->cpChannel);
+ L2_PARAM_SET(pa[7], join, INT, &cfg->bJoin);
+ L2_PARAM_SET(pa[8], host, STR, &cfg->cpHost);
+ L2_PARAM_SET(pa[9], port, STR, &cfg->cpPort);
+ L2_PARAM_SET(pa[10], timeout, INT, &cfg->nTimeout);
L2_PARAM_END(pa[11]);
- rv = l2_util_setparams(pa, fmt, ap);
+ l2_channel_env(ch, &env);
+ rv = l2_util_setparams(env, pa, fmt, ap);
return rv;
}
|