rtkl.md 1.5 KB

rtkl

Allows privileged opers to remove remote servers' local K/Z-Lines. The required privileges are server-ban:kline:remove and server-ban:zline:local:remove, which the "netadmin" operclass should carry by default. The syntax is mostly the same as for regular K/Z-Lines, with the addition of one in the very front to indicate the target server. After some checks it will simply pass on a KLINE or ZLINE command to that server, so any further error handling is done by that module. ;]

Syntax:
RKLINE <server> <[-]identmask@hostmask> {duration} {reason} => Add/Delete a local K-Line on server for the specified usermask (duration and reason are ignored for deletions)
RZLINE <server> <[-]identmask@ipmask> {duration} {reason} => Add/Delete a local Z-Line on server for the specified usermask (duration and reason are ignored for deletions)

Examples:

  • RKLINE myleaf.dom.tld *@top.kek.org 0 lolnope => Adds a permanent K-Line on myleaf.dom.tld for everyone connecting from top.kek.org
  • RKLINE myleaf.dom.tld -*@top.kek.org 0 lolnope => Deletes this same K-Line
  • RZLINE myleaf.dom.tld *@123.123.123.* 60 lolnope => Adds a one-minute Z-Line on myleaf.dom.tld for everyone connecting from 123.123.123.*

Since the snomask notices on the target server are only sent to local opers, I had to hack some hook bs to get the executing oper to see that shit. =]

Protip: I didn't include a method for listing the remote server's *-Lines, you can already use /stats K myleaf.dom.tld for that fam. ;]