projects
/
ircu2.10.12-pk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7e96770
)
Ignore second parameter of WEBIRC command
author
pk910
<philipp@zoelle1.de>
Tue, 28 Jun 2011 13:34:18 +0000
(15:34 +0200)
committer
pk910
<philipp@zoelle1.de>
Tue, 28 Jun 2011 13:34:18 +0000
(15:34 +0200)
ircd/m_webirc.c
patch
|
blob
|
history
diff --git
a/ircd/m_webirc.c
b/ircd/m_webirc.c
index e235e7f6058798b0e9c315fd8849cc8421cb8e58..13fbd6e5f05929dbef428ea61c4b3c9bef6cabbc 100644
(file)
--- a/
ircd/m_webirc.c
+++ b/
ircd/m_webirc.c
@@
-144,7
+144,7
@@
static struct webirc_block *webirc_match(const char *passwd, const char *real_ho
*
* parv[0] = sender prefix
* parv[1] = password
*
* parv[0] = sender prefix
* parv[1] = password
- * parv[2] = "cgiirc"
+ * parv[2] = "cgiirc"
(ignored)
* parv[3] = hostname
* parv[4] = ip
*/
* parv[3] = hostname
* parv[4] = ip
*/
@@
-169,18
+169,6
@@
int m_webirc(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) {
if(parc < 5)
return need_more_params(sptr, "WEBIRC");
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)) {
/* created ip in dotted notation */
con_addr = ircd_ntoa(&(cli_ip(sptr)));
if(0 == ipmask_parse(parv[4], &addr, NULL)) {