summaryrefslogtreecommitdiff
path: root/modules/m_webirc.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-12-24 15:19:32 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-12-24 15:19:32 +0000
commit28015f9000e17d9aa1f0d1e4f24a0caf5b63d9da (patch)
tree04c0e40dcc4426166943a81c459da4d69ef989d3 /modules/m_webirc.c
parent6ab5c544269946d55c4dd5588f0f1389e3287ef4 (diff)
- Improved WEBIRC authentication; added 'webirc' to auth::flags
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1715 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_webirc.c')
-rw-r--r--modules/m_webirc.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/modules/m_webirc.c b/modules/m_webirc.c
index 9751a37..d5a9336 100644
--- a/modules/m_webirc.c
+++ b/modules/m_webirc.c
@@ -37,28 +37,6 @@
#include "conf.h"
#include "hostmask.h"
-/*
- * Usage:
- *
- * auth {
- * user = "webirc@<cgiirc ip>"; # if identd used, put ident username instead
- * password = "<password>"; # encryption possible
- * spoof = "webirc."
- * class = "users";
- * encrypted = yes; # [Using encryption is highly recommended]
- * };
- *
- * Possible flags:
- * kline_exempt - k/g lines on the cgiirc ip are ignored
- * gline_exempt - glines on the cgiirc ip are ignored
- *
- * dlines are checked on the cgiirc ip (of course).
- * k/d/g/x lines, auth blocks, user limits, etc are checked using the
- * real host/ip.
- *
- * The password should be specified unencrypted in webirc_password in
- * cgiirc.config
- */
static int
invalid_hostname(const char *hostname)
@@ -112,7 +90,7 @@ mr_webirc(struct Client *client_p, struct Client *source_p, int parc, char *parv
if (conf == NULL || !IsConfClient(conf))
return;
- if (!IsConfDoSpoofIp(conf) || irccmp(conf->name, "webirc."))
+ if (!IsConfWebIRC(conf))
{
sendto_one(source_p, ":%s NOTICE %s :Not a CGI:IRC auth block", me.name,
source_p->name[0] ? source_p->name : "*");