| 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) |
| 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 : "*"); |