ircu patch (see through +D, provide login and realname) 06/06/2008


This patch adds support for ircu's channel mode +D and provides tcl-commands to get a users auth (aka AC-token/Q-auth/X-login) and realname.
It will trigger eggdrops 'bind join', 'bind nick', 'bind part' and 'bind sign' as best as it can through +D.

Download


Download the patch for eggdrop1.6.20
Download prepatched eggdrop1.6.20

Usage instruction


Either set net-type to 2 (Undernet), or to 5 and set use-354 to 1.
To verify that you set it up correctly, check .status

New Tcl commands: (doc/tcl-commands.doc is updated by the patch)

getchanlogin <nick> [channel]

Returns the AC token of a user on the bot's channel(s).
"" if the user cannot be found in the channel or in any channel if not specified. (This state shouldn't last more than 1 minute)
0 if the user is not logged in.

getchanrealname <nick> [channel]

Returns the realname of a user on the bot's channel(s).
"" if the user cannot be found in the channel or in any channel if not specified. (Again, this shouldn't last more than one minute if the user can be found)

isloggedin <nick> [channel]

Returns 1 if the user is found and logged in, 0 otherwise.

isinvisible <nick> [channel]

Returns 1 if the user is found and hidden through +D, 0 otherwise.

New bind types

AUTH (stackable)

bind auth <flags> <mask> <proc>
proc-name <nick> <user@host> <handle> <channel>

Triggered whenever a user changes his login from non-authed (0) to something else.
[getchanlogin <nick> <channel>] returns the new login.
Mask is matched against the new login and can contain wildcards.

DLJN (stackable), short for 'delayed join'

bind dljn <flags> <mask> <proc>
proc-name <nick> <user@host> <handle> <channel>

Triggered whenever a user joins a channel and the AC token/realname is known. This is at the same time as for bind join on +D channels. On -D channels, this takes some time (up to 1 minute).
Mask is matched against 'nick!user@host' and can contain wildcards. If you want to use [getchanlogin]/[getchanrealname] in a join bind, use this one instead.

 
 

Eggdrop-Patches