787 B

[SPEC] mafiareturns

Requested by IzzyCreamcheese, this module improves upon his website's chat functionality.

Config block:

mafiareturns {
    channels "#chan1, #chan2";
    tag "[MR]";
    position back;

The position can be either back or front, the meaning of which should be pretty clear. =] If a user's nick matches the tag at position, the module will prevent them from changing their nick or parting any of the channels listed in channels and notices them about it (shit like /part #somechan,#chan1 will be rewritten to /part #somechan too). Servers, U-Lines and opers etc are exempt for obvious raisins. ;]

The directives channels and tag are required, position will fall back to back if it's omitted or contains an invalid value.