Event_OnClone


Parameters


$1 = Channel
$2 = Clone mask (of type *!*@host)
$3 = Cloned nick list

Description


This event fires when a CLONESCAN detects a clone on a channel.
The clonescan can be either user requested or automatic (when activated 'clonescan on join' option).
It is a good place to protect your channel from takeovers.
Note that you may be a clone too.

Example


Here we notify the clones to the channel.
If the clones are more than two , we deop them and set a ban to prevent more clones from joining.
All that assuming that we have operator status on the channel.
Note that there is no check if the we are in the cloned nicks list.
/<
    say $1 Warning : Clones detected for mask [$2] : $3
    if ($%cmp_gt[$%lst_count[$3],2])<
        if ($%ext_ismeop[$1])<
            deop $1 $3;
            ban $1 $2;
        >
    >
>

See also


CLONESCAN
Index  Event list