Difference between revisions of "2.0/Modules/ns status"

From AnopeWiki
Jump to: navigation, search
(Created page with "{{Language|2.0/Modules/ns_status}} {{Syntax|ns_status|NickServ|Anope}} == <div class="moduleheader">Description</div> == Returns whether the user using the given nickname is...")
 
m
Line 11: Line 11:
 
status-code is one of the following, and account is the account they are logged in as.
 
status-code is one of the following, and account is the account they are logged in as.
  
0 - no such user online or nickname not registered
+
*0 - no such user online or nickname not registered
1 - user not recognized as nickname's owner
+
*1 - user not recognized as nickname's owner
2 - user recognized as owner via access list only
+
*2 - user recognized as owner via access list only
3 - user recognized as owner via password identification
+
*3 - user recognized as owner via password identification
  
 
If no nickname is given, your status will be returned.
 
If no nickname is given, your status will be returned.

Revision as of 03:04, 5 May 2014

Language

English

Service NickServ
Module ns_status
Author Anope


Description

Returns whether the user using the given nickname is recognized as the owner of the nickname. The response has this format:

nickname status-code account

where nickname is the nickname sent with the command, status-code is one of the following, and account is the account they are logged in as.

  • 0 - no such user online or nickname not registered
  • 1 - user not recognized as nickname's owner
  • 2 - user recognized as owner via access list only
  • 3 - user recognized as owner via password identification

If no nickname is given, your status will be returned.

Commands

status [nickname]

Examples

/msg NickServ STATUS Fred

Default Configuration

/*                                                                                                                
 * ns_status                                                                                                      
 *                                                                                                                
 * Provides the nickserv/status command.
 *                                                                                                                
 * Used to determine if a user is recognized or identified by services.                                           
 */                                                                                                               
module { name = "ns_status" }                                                                                     
command { service = "NickServ"; name = "STATUS"; command = "nickserv/status"; }