Subversion Repositories ircu

Compare Revisions

Ignore whitespace Rev 299 → Rev 300

/trunk/ChangeLog
1,3 → 1,6
2010-07-29 David Herrmann <dh.herrmann@gmail.com>
* ircu-dev/ircd/m_webirc.c: Ignore second parameter of WEBIRC command.
 
2010-07-28 David Herrmann <dh.herrmann@gmail.com>
* ircu-dev/ircd/m_privmsg.c: Reset idle time only if the message
and destination are valid.
/trunk/ircu-dev/ircd/m_webirc.c
141,7 → 141,7
*
* parv[0] = sender prefix
* parv[1] = password
* parv[2] = "cgiirc"
* parv[2] = "cgiirc" or any other string (ignored)
* parv[3] = hostname
* parv[4] = ip
*/
166,18 → 166,6
if(parc < 5)
return need_more_params(sptr, "WEBIRC");
 
if(strcmp(parv[2], "cgiirc")) {
if(feature_bool(FEAT_WEBIRC_REJECT)) {
IPcheck_connect_fail(sptr);
return exit_client(cptr, sptr, &me, "WebIRC protocol violation (p2).");
}
else {
len = sprintf(webirc_buf, "NOTICE %s :%sWebIRC protocol violation (p2).\r\n", nick, auth ? "*** " : "");
webirc_resp(sptr, webirc_buf, len);
return 0; /* continue with normal authentication */
}
}
 
/* created ip in dotted notation */
con_addr = ircd_ntoa(&(cli_ip(sptr)));
if(0 == ipmask_parse(parv[4], &addr, NULL)) {