class SCPIrcFile

Introduction

SCPIrcFile provides access to data housed in the mrSCPI RC file found at $HOME/.mrSCPIrc or at $MRSCPIRC.

RC File Content

The file has (for now) two kinds of lines: Nickname at SCPIrcFile & Network at SCPIrcFile.

Nickname

Nickname lines look like this:

<space_separated_list_of_nicknames> => <space_separated_list_of_network_annotated_urls>

The components are as follows:

Network

Network lines look like this:

<network_name> <space_separated_list_of_networks>

The components are as follows:

Use

In general SCPIrcFile provides three services:

When nickname strings provided as arguments have no explicitly given network, then the network lines in the RC file are used to try and find one. The host IP addresses are tested for inclusion in each domain listed in the RC file – in the order they are found in the file. If the host has an IP address that is included in one of the networks, then that network name is used for the nickname lookup. If nothing is found, then the network name is left as the empty string – so it will match a network_annotated_url with an empty network.