myservers
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | myservers [2006/08/29 16:08] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: myservers.txt, | ||
+ | ======Synopsis: | ||
+ | $__myservers__() \\ | ||
+ | $__myservers__(< | ||
+ | |||
+ | ======Technical: | ||
+ | * If provided with no arguments, this function returns a space separated list of server names of all servers that epic has a connection open to. For registered connections (you' | ||
+ | * If provided with any arguments (the arguments themselves are ignored), the function returns a space separated list of server refnums for all of your registered connections (you' | ||
+ | |||
+ | ======Practical: | ||
+ | The list of server names is not entirely useful since without the port | ||
+ | number you can't really be sure what server it is being referred to. | ||
+ | Also, including the pending servers can be nice, but since you aren't | ||
+ | permitted to send commands to them, it's of limited use. The list of | ||
+ | registered server refnums is more useful since these are the servers | ||
+ | you are permitted to send commands to. | ||
+ | |||
+ | ======Returns: | ||
+ | With arguments: the list of registered server refnums \\ | ||
+ | Without arguments: the list of open server names | ||
+ | |||
+ | ======Example: | ||
+ | To simulate the /[[AWAY]] -ALL command: | ||
+ | |||
+ | < | ||
+ | alias awayall { | ||
+ | fe ($myservers(*)) x { | ||
+ | xquote -s AWAY $* | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ======History: | ||
+ | The first form (without arguments) first appeared in ircII-2.2.2. | ||
+ | |||
+ | The second form (with arguments) first appeared in EPIC4pre1.028 and was suggested by Colten Edwards. | ||
myservers.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1