$context.serverHostName Returns the IRC server name of an IRC context |
Usage |
<string> $context.serverHostName <string> $context.serverHostName(<irc_context_id:uint>) |
Description |
Returns the host name of the IRC server that was used to perform the connection in the specified IRC context. If no irc_context_id is specified then the current irc_context is used. If the irc_context_id specification is not valid then this function returns nothing. If the specified IRC context is not currently connected then this function returns nothing. Please note that this function returns the name of the server as reported by the server itself. Some servers report a bogus value for this field. You should take a look at $context.serveripaddress if you want a value that can be used to really reconnect to this server. If you want a value to manipulate the server entry via the serverDB functions then you probably need $context.serverdbserverhostname. |
See also |
$context.serverdbserverhostname $context.serverport, $context.serveripaddress, $context.serverpassword |