From WikiChip
Difference between revisions of "mirc/commands/guser"
(→Example) |
m (Bot: de-linking old mIRC menu) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|/guser Command | + | {{mirc title|/guser Command}} |
The '''/guser command''' looks up the address of the specified nick and adds it to the user list. It does this by doing a {{mIRC|/userhost}} on the given nickname, and returning an address in the format specified by [type]. If [type] is not specified then a default address format is selected. | The '''/guser command''' looks up the address of the specified nick and adds it to the user list. It does this by doing a {{mIRC|/userhost}} on the given nickname, and returning an address in the format specified by [type]. If [type] is not specified then a default address format is selected. | ||
Line 16: | Line 16: | ||
== Example == | == Example == | ||
alias F12 { | alias F12 { | ||
− | ; Adds $1 to Users | + | ; Adds $1 to Users - Level 20 |
guser 20 $$1 2 $1 | guser 20 $$1 2 $1 | ||
− | ; Toggles color | + | ; Toggles nick color to Yellow in the Users List |
cline -hlm 8 $chan $1 | cline -hlm 8 $chan $1 | ||
} | } |
Latest revision as of 18:26, 15 June 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /guser command looks up the address of the specified nick and adds it to the user list. It does this by doing a /userhost on the given nickname, and returning an address in the format specified by [type]. If [type] is not specified then a default address format is selected.
Synopsis[edit]
/guser [-a] <levels> <nick> [type] [info]
Switches[edit]
- -a - if the user already exists, the specified levels are added to the current levels the user has
Parameters[edit]
- <levels> - a list of levels seperated by commas
- <nick> - the nickname you want to add the address from
- [type] - if not specified, mIRC use a default type: 6
- [info] - append text to the entry that is added to the users list
Example[edit]
alias F12 {
; Adds $1 to Users - Level 20 guser 20 $$1 2 $1 ; Toggles nick color to Yellow in the Users List cline -hlm 8 $chan $1
}
Compatibility[edit]
Added: 3.3 - 3.4
See also[edit]
mIRC commands list