2.0/Modules/os sxline

From AnopeWiki
Jump to: navigation, search
Language

English

Service OperServ
Module os_sxline
Author Anope

Description

SNLINE 
Allows Services Operators to manipulate the SNLINE list. If a user with a realname matching an SNLINE mask attempts to connect, Services will not allow it to pursue his IRC session.
ADD 
adds the given realname mask to the SNLINE list for the given reason (which must be given). expiry is specified as an integer followed by one of d (days), h (hours), or m (minutes). Combinations (such as 1h30m) are not permitted. If a unit specifier is not included, the default is days (so +30 by itself means 30 days). To add an SNLINE which does not expire, use +0. If the realname mask to be added starts with a +, an expiry time must be given, even if it is the same as the default. The current SNLINE default expiry time can be found with the STATS AKILL command.
Note: because the realname mask may contain spaces, the separator between it and the reason is a colon.
DEL 
removes the given mask from the SNLINE list if it is present. If a list of entry numbers is given, those entries are deleted.
LIST 
displays the SNLINE list. If a wildcard mask is given, only those entries matching the mask are displayed. If a list of entry numbers is given, only those entries are shown.
VIEW 
a more verbose version of SNLINE LIST, and will show who added an SNLINE, the date it was added, and when it expires, as well as the realname mask and reason.
CLEAR 
clears all entries of the SNLINE list.
SQLINE 
Allows Services Operators to manipulate the SQLINE list. If a user with a nick matching an SQLINE mask attempts to connect, Services will not allow it to pursue his IRC session. If the first character of the mask is #, services will prevent the use of matching channels.
ADD 
adds the given (nick's) mask to the SQLINE list for the given reason (which must be given). expiry is specified as an integer followed by one of d (days), h (hours), or m (minutes). Combinations (such as 1h30m) are not permitted. If a unit specifier is not included, the default is days (so +30 by itself means 30 days). To add an SQLINE which does not expire, use +0. If the mask to be added starts with a +, an expiry time must be given, even if it is the same as the default. The current SQLINE default expiry time can be found with the STATS AKILL command.
DEL 
removes the given mask from the SQLINE list if it is present. If a list of entry numbers is given, those entries are deleted.
LIST 
displays the SQLINE list. If a wildcard mask is given, only those entries matching the mask are displayed. If a list of entry numbers is given, only those entries are shown.
VIEW 
a more verbose version of SQLINE LIST, and will show who added an SQLINE, the date it was added, and when it expires, as well as the mask and reason.
CLEAR 
clears all entries of the SQLINE list.
  • NOTE: Access to these commands require the permission operserv/snline to be present in your opertype.

Commands

SNLINE
snline ADD [+expiry] mask:reason
snline DEL {mask | entry-num | list | id}
snline LIST [mask | list | id]
snline VIEW [mask | list | id]
snline CLEAR
SQLINE
sqline ADD [+expiry] mask reason
sqline DEL {mask | entry-num | list | id}
sqline LIST [mask | list | id]
sqline VIEW [mask | list | id]
sqline CLEAR

Examples

/msg OperServ SNLINE ADD Adolf Hitler:We do not condone racist name, suggestion, or references.

/msg OperServ SNLINE DEL 3-6

/msg OperServ SNLINE LIST

/msg OperServ SNLINE VIEW

/msg OperServ SNLINE CLEAR

/msg OperServ SQLINE ADD +7d *@*.natzi.org You are not welcome here.

/msg OperServ SQLINE DEL 0x389s4

/msg OperServ SQLINE LIST 1-9

/msg OperServ SQLINE VIEW 5

/msg OperServ SQLINE CLEAR

Default Configuration

/*
 * os_sxline
 *
 * Provides the operserv/snline and operserv/sqline commands.
 *
 * Used to ban real names, nick names, and possibly channels.
 */
module { name = "os_sxline" }
command { service = "OperServ"; name = "SNLINE"; command = "operserv/snline"; permission = "operserv/snline"; }
command { service = "OperServ"; name = "SQLINE"; command = "operserv/sqline"; permission = "operserv/sqline"; }