Commands and variables which have been implemented as part of the eggdrop emulation are not listed in this file. For a list of such commands you should read “tcl-commands.doc” (which is part of the eggdrop package) instead.
Syntax: bnccheckpassword <User> <Password>
Description: Checks whether a given password matches a specific user's password.
Returns: 1 if the <Password> is correct, 0 otherwise.
Syntax: trafficstats <User> [<ConnectionType>] [<Type>]
Description: Returns traffic statistics for the specified user. ConnectionType can be either server or client. Type can be in or out.
Returns: The traffic (in bytes).
Valid values for <Function>:
bytes - returns the number of bytes in the user's queue.
items - just like 'bytes', however it returns the number of items.
on - enables the flood protection
off - disables the flood protection
Syntax: putclient <Text>
Description: Sends <Text> to the client connection that is attached to a bouncer user.
Returns: 1 if successful, 0 otherwise, e.g. when the current context is not valid or when the user is not logged in.
Syntax: simul <User> <Command>
Description: Simulates <Command> in the context of <User>. shroudBNC performs the <Command> as if the user has typed /<Command>.
Returns: 1 if successful, 0 otherwise, e.g. when <User> is not a valid user.
Syntax: impulse <Impulse>
Description: Sends various debug commands.
Returns: Usually nothing.
Syntax: internalgetchanidle <Nick> <Channel>
Description: Do not use this. Use getchanidle instead. See tcl-commands.doc for more details.
Returns: The nick's idletime in seconds.
Syntax: bncgetsendq TODO
Description: TODO
Returns: TODO
Syntax: TODO
Description: TODO
Returns: TODO
Syntax: TODO
Description: TODO
Returns: TODO
Syntax: TODO
Description: TODO
Returns: TODO
Syntax: TODO
Description: TODO
Returns: TODO
Syntax: internaltimer <interval(seconds)> <Repeat(0|1)> <command> [<parameter(s?)>]
Description: TODO
Returns: 1 on success
Sample: internaltimer 10 0 putmainlog “hello world”
SampleComment: It will say hello world one time in 10s
Syntax: bncaddcommand <Name> <Category> <Description> [<HelpText>]
Description: Adds a new command for /sbnc help. This command can only be used in an “internalbind command”-proc which was triggered for the command “help”.
Returns: Nothing.
Syntax: bnccommand <Command> <Parameters>
Description: Executes a module-specific command. This is used to communicate with other sBNC modules.
Returns: The return value is module specific. If no module processed the command an empty string is returned.
Syntax: bncgetglobaltag <Name>
Description: Returns the value of a global tag.
Returns: A string or NULL.
TODO: list every available Resources
Syntax: bncisipblocked <Ip>
Description: Checks whether an IP address is temporarily blocked (i.e. can't be used to login).
Returns: 1 if the ip is blocked, 0 otherwise.
Syntax: bncnumversion
Description: Returns the version of sBNC, e.g. 0090000
Returns: A string identifying the current version.
Syntax: bncvaliduser <Username>
Description: Checks whether the specified user exists.
Returns: 1 if the username exsists, 0 otherwise.
Syntax: bncvalidusername <Username>
Description: Checks whether something is a valid username.
Returns: 1 if the username is valid, 0 otherwise.
Syntax: bncversion
Description: Returns the version of sBNC, e.g. 0.9 0090000.
Returns: A string identifying the current version.
Syntax: getchanprefix <Channel> <Nick>
Description: Returns the “best” prefix of a nick.
Returns: The prefix (e.g. @ or +).
Syntax: getchanrealname <Channel> [<Nick>]
Description: Returns the user's realname.
Returns: A string or NULL.
Syntax: getisupport <Feature>
Description: Returns a specific feature's value from the server's 005 replies.
Returns: The value of the feature.
Syntax: isprefixmode <Mode>
Description: Returns whether a channel-mode can be applied to nicks (e.g. +o or +v).
Returns: 1 if the mode can be applied to nicks, 0 otherwise.
Syntax: md5 <String> [<Salt>]
Description: Calculates an MD5 hash for <String>.
Returns: An MD5 hash. If the <Salt> argument is not empty, the returned format is <Salt>$<MD5Hash> and the <MD5Hash> is the hash of <String><Salt>.
Syntax: requiresparam <Mode>
Description: Returns whether a channel-mode requires a parameter.
Returns: 3 if the mode is a list (e.g. the banlist) and requires a parameter for setting and unsetting, 2 if the mode needs a parameter for setting and unsetting. 1 if the mode requires a parameter for setting it, 0 if the mode does not require a parameter for setting it.
Syntax: synthwho <Channel> <Simulate>
Description: Synthesizes a /who reply for the given channel.
Returns: 1 if successful, 0 otherwise. Undefined behaviour can occur when Simulate and the reply are both 0.
Syntax: putlog <Text>
Description: …
Returns: …