ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_webirc.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_webirc.c (file contents):
Revision 1689 by michael, Wed Dec 19 21:43:32 2012 UTC vs.
Revision 1715 by michael, Mon Dec 24 15:19:32 2012 UTC

# Line 37 | Line 37
37   #include "conf.h"
38   #include "hostmask.h"
39  
40 – /*
41 – * Usage:
42 – *
43 – * auth {
44 – *   user = "webirc@<cgiirc ip>"; # if identd used, put ident username instead
45 – *   password = "<password>"; # encryption possible
46 – *   spoof = "webirc."
47 – *   class = "users";
48 – *   encrypted = yes; # [Using encryption is highly recommended]
49 – * };
50 – *
51 – * Possible flags:
52 – *   kline_exempt - k/g lines on the cgiirc ip are ignored
53 – *   gline_exempt - glines on the cgiirc ip are ignored
54 – *
55 – * dlines are checked on the cgiirc ip (of course).
56 – * k/d/g/x lines, auth blocks, user limits, etc are checked using the
57 – * real host/ip.
58 – *
59 – * The password should be specified unencrypted in webirc_password in
60 – * cgiirc.config
61 – */
40  
41   static int
42   invalid_hostname(const char *hostname)
# Line 112 | Line 90 | mr_webirc(struct Client *client_p, struc
90    if (conf == NULL || !IsConfClient(conf))
91      return;
92  
93 <  if (!IsConfDoSpoofIp(conf) || irccmp(conf->name, "webirc."))
93 >  if (!IsConfWebIRC(conf))
94    {
95      sendto_one(source_p, ":%s NOTICE %s :Not a CGI:IRC auth block", me.name,
96                 source_p->name[0] ? source_p->name : "*");

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)