Anope IRC Services

Anope Support => 1.8.x/1.7.x Support (Read Only) => Topic started by: Szymek on August 11, 2007, 11:23:17 AM

Title: [1.7.19] Hybrid & Q-LINE
Post by: Szymek on August 11, 2007, 11:23:17 AM
Hello. Hybrid has support for Q-lines.

Quote
RESV <channel|nick> :<reason>

 -- RESV a channel or nick
 Will create a resv for the given channel/nick, stopping
 local users from joining the channel, or using the
 nick.  Will not affect remote clients.

 If the oper is an admin, they may create a wildcard
 resv, for example: clones*

 UNRESV <channel|nick>

 -- Remove a RESV on a channel or nick
 Will attempt to remove the resv for the given
 channel/nick. If the resv is conf based, the resv
will not be removed.

 UNRESV <channel|nick> ON irc.server
 will unresv the <channel|nick> on irc.server if irc.server
 accepts remote unresvs. If the resv is conf based, the resv
 will not be removed.


Quote
void hybrid_cmd_sqline(char *mask, char *reason)
{
    send_cmd(s_OperServ, "RESV * %s :%s", mask, reason);
}

void hybrid_cmd_unsqline(char *user)
{
    send_cmd(s_OperServ, "UNRESV * %s", user);
}