summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/m_stats.c4
-rw-r--r--modules/m_webirc.c24
2 files changed, 4 insertions, 24 deletions
diff --git a/modules/m_stats.c b/modules/m_stats.c
index 0a6f78f..32b0582 100644
--- a/modules/m_stats.c
+++ b/modules/m_stats.c
@@ -642,9 +642,11 @@ stats_hubleaf(struct Client *source_p, int parc, char *parv[])
static const char *
show_iline_prefix(const struct Client *sptr, const struct MaskItem *conf)
{
- static char prefix_of_host[USERLEN + 14];
+ static char prefix_of_host[USERLEN + 15];
char *prefix_ptr = prefix_of_host;
+ if (IsConfWebIRC(conf))
+ *prefix_ptr++ = '<';
if (IsNoTilde(conf))
*prefix_ptr++ = '-';
if (IsLimitIp(conf))
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 : "*");