[IRCServices Coding] feature request
Sean Kelly
smkelly at zombie.org
Sun Jun 2 03:19:26 PDT 2002
On Sun, Jun 02, 2002 at 11:54:30AM +0200, Aragon Gouveia wrote:
> Hi,
>
> I'm eagerly awaiting 5.0 and would love to see this feature in it.
>
> Support for mlock channel mode L when compiled for Unreal (3.2). The mode is
> used to "link" channels and must be accompanied by an l mode to set a user
> limit. The mode takes one parameter, the target channel.
>
> eg. MODE #chan1 +lL 5 #chan2
>
> Would make users automatically join #chan2 when #chan1 reaches the 5 user
> limit.
This already exists in Services 5.0pre0. From modules/protocol/unreal.c:
static const struct modedata_init new_chanmodes[] = {
...
{'L', {0x01000000,1,0}}, /* Channel link */
...
static int do_channel_mode(const char *source, Channel *channel,
int modechar, int add, char **av)
{
...
case 'L':
free(channel->link);
if (add) {
channel->mode |= flag;
channel->link = sstrdup(av[0]);
..
I don't use Unreal, so I can't guarentee that it works. It looks like it
should though.
--
Sean Kelly | PGP KeyID: 77042C7B
smkelly at zombie.org | http://www.zombie.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : ../attachments/20020602/af16ee9f/attachment.pgp