# $context.serverHostName Returns the IRC server name of an IRC context
Usage
    $context.serverHostName
    $context.serverHostName(<irc_context_id>)
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.
Syntax Specification
    <string> $context.serverHostName
    <string> $context.serverHostName(<irc_context_id:uint>)
See also
$context.serverdbserverhostname $context.serverport, $context.serveripaddress, $context.serverpassword

Index, Functions

KVIrc 4.2.0.6190 Documentation
Generated by nobody at Thu May 29 11:24:48 2014