anope & kline

Martin J. Green mail at martinjgreen.me.uk
Tue Mar 25 02:52:03 EDT 2008


Anyone can help with this? At all...? Anyone...?

To recap it's an issue with remote KLINE, RESV & XLINE. While I've added a few modules, I've not touched any of those I've also checked with clean stock 7.2.3 (and clean anope 1.7.21) and the issue exists there too.

Martin

From: Martin J. Green
Sent: 23 March 2008 18:22
To: 'hybrid at lists.ircd-hybrid.org'
Subject: RE: anope & kline

I have a similar issue with XLINE & RESV. This is on 7.2.3

Example... RESV being sent in the format

<source> RESV <target server> <mask> :<reason>

I've added the shared block:

shared {
        name = "services.come-to-chat.com";
        type = all;
};

And stats U:
U services.come-to-chat.com *@* cKkUXxYQqRL
End of /STATS report

Running services in debug mode, I can see the raw send:
[Mar 23 18:12:43.111581 2008] OperServ: Neo: sqline add *test* Inappropriate nickname
[Mar 23 18:12:43.111749 2008] debug: Sent: :services.come-to-chat.com RESV insomnia.come-to-chat.com *test* :Inappropriate nickname
[Mar 23 18:12:43.111867 2008] debug: Sent: :OperServ NOTICE Neo :*test* added to the SQLINE list.
[Mar 23 18:12:43.111987 2008] debug: Sent: :OperServ OPERWALL :Neo added an SQLINE for *test* (expires in 30 days)

I've also tried sending it from the client (OperServ) instead of from server - neither works. Same for kline, same for xline. Nothing gets applied.

What's wrong with this format? Looking at the code it seems correct, but clearly doesn't work. :(

Any help appreciated.

Martin

From: Martin J. Green
Sent: 22 March 2008 19:03
To: 'hybrid at lists.ircd-hybrid.org'
Subject: anope & kline

I'm using hybrid (7.2.3) with anope (with other bits & pieces added to support services).

The anope code has:

void hybrid_cmd_akill(char *user, char *host, char *who, time_t when,
                      time_t expires, char *reason)
{
    send_cmd(s_OperServ, "KLINE * %ld %s %s :%s",
             (long int) (expires - (long) time(NULL)), user, host, reason);
}

To implement services akill - its trying to do Kline * <time> <user> <host> :<reason> - ie apply a remote kline to all servers, but this fails.

Is this syntax correct?

Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ircd-hybrid.org/pipermail/hybrid/attachments/20080325/34e0ebd4/attachment.html>


More information about the hybrid mailing list