#include "services.h"
#include "memoserv.h"
#include "queue.h"
#include "macro.h"
#include "nickserv.h"
#include "chanserv.h"
#include "infoserv.h"
#include "email.h"
#include "hash.h"
#include "clone.h"
#include "mass.h"
#include "db.h"
#include "log.h"
#include "hash/md5pw.h"
Go to the source code of this file.
Classes | |
struct | ghost_struct |
Simple linked list with all the ghost stuff [enforcer] in them. More... | |
struct | nss_tab |
struct | opflag_table |
Oper flag table structure. More... | |
Defines | |
#define | REALLEN 50 |
#define | OPFLAG(x, y, z) { x, y, z } |
Oper flag definition macro. | |
#define | NUM_CNICKS (sizeof(cnick_prefixes)/sizeof(char *)) |
Number of defined CNICK prefixes. | |
#define | CNICK_FMT ":%s CNICK %s %s %ld" |
Typedefs | |
typedef ghost_struct | GhostList |
Alias to structure for keeping NickServ enforcer information. | |
Enumerations | |
enum | ns_set_en { NSS_FLAG, NSS_PROC } |
NickServ set classes. More... | |
Functions | |
GhostList * | getGhost (char *) |
Retrieve information about a NickServ enforcer. | |
char * | urlEncode (const char *) |
const char * | GetAuthChKey (const char *, const char *pass, time_t, u_int32_t code_arg) |
const char * | PrintPass (u_char pI[], char enc) |
Print a password appropriately encoded according to its encryption type (if applicable). | |
akill * | getAkill (char *nick, char *user, char *host) |
char * | applyAkill (char *nick, char *user, char *host, struct akill *ak) |
char * | getAkReason (struct akill *ak) |
akill * | getAhurt (char *nick, char *user, char *host) |
long | getAkillId (struct akill *ak) |
void | enforce_nickname (char *nick) |
int | isPasswordAcceptable (const char *password, char *reason) |
Is a password acceptable? | |
RegId | top_user_idnum (0, 1) |
Highest user identifier. | |
RegId | top_regnick_idnum (0, 1001) |
void | nDesynch (char *nick, char *type) |
Handle user desyncs. | |
void | annoyNickThief (UserList *) |
Basically bother a nick owner into giving a nick back (and/or enforce nick kill). | |
void | complainAboutEmail (UserList *) |
Nag users who never set an e-mail address and never did the '/NICKSERV SET ADDRESS NONE'. | |
void | killide (char *) |
Timed force nick change (or nag) of a user whom services does not believe owns the nickname. | |
void | removeEnforcer (char *) |
no longer exists | |
void | freeUserListRec (UserList *zap) |
Free a userlist record. | |
void | freeRegNickListRec (RegNickList *zap) |
Free a registered nick record. | |
void | NickSeeUser (UserList *newnick, RegNickList *reg, int caccess, int verbose) |
NickServ sees a user. | |
void | SetUserNickHostReal (UserList *newnick, char *nick, char *user, char *host, char *gecos) |
Assigns the nickname, username, host, and possibly gecos of an online user object. | |
char | NickGetEnc (RegNickList *rnl) |
Get a registered nick encryption prefix. | |
void | addNewUser (char **args, int numargs) |
Handles a server NICK message by adding a new user connection. | |
void | changeNick (char *from, char *to, char *ts) |
Handles a NICK command, allowing nicknames to change. | |
void | setMode (char *nick, char *mode) |
Changes the modes of an online user. | |
void | setFlags (char *nick, int flag, char change) |
Sets online flags of an online user structure. | |
void | setIdentify (UserList *user, RegNickList *nick) |
Identifies an online user to a registered nickname. | |
void | clearIdentify (UserList *user) |
Clears any identify by an online user. | |
int | isIdentified (UserList *user, RegNickList *nick) |
Reports TRUE or FALSE indicating whether or not the specified user is identified to the specified nickname. | |
int | isRecognized (UserList *user, RegNickList *nick) |
Reports TRUE or FALSE indicating whether or not the specified user is recognized by access list (ACC 2) for the specified nickname. | |
int | isOper (UserList *nick) |
int | opFlagged (UserList *nick, flag_t flag) |
flag_t | getOpFlags (UserList *nick) |
Returns the effective flags of an online user. | |
int | issRoot (UserList *nick) |
int | isRoot (UserList *nick) |
int | isServop (UserList *nick) |
int | isGRPop (UserList *nick) |
int | isHelpop (UserList *nick) |
int | canAkill (UserList *nick) |
void | remUser (char *nick, int ignoreDesync) |
Handles the QUIT server message, it removes a user from the nickname list and destroys the allocated memory area. | |
void | addNick (UserList *newnick) |
Adds the online user item to the user hash tables and user list. | |
void | addRegNick (RegNickList *newnick) |
Adds the registered nick item to the nickname hash tables and user list. | |
void | delNick (UserList *killme) |
Removes the online user item from the user hash tables and user list. When this function returns, 'killme' is no longer a valid pointer. | |
void | delRegNick (RegNickList *killme) |
Removes the registered nick item from the nickname hash tables and nick list. When this function returns, 'killme' is no longer a valid pointer. | |
UserList * | getNickData (char *nick) |
Searches the user hash table for information about the specified online user by nickname. Returns a pointer to the online user item if found, otherwise returns NULL. | |
RegNickList * | getRegNickData (const char *nick) |
Searches the regnick hash table for information about the specified registered nick data by nickname. | |
int | checkAccess (char *user, char *host, RegNickList *nick) |
Used to test whether the specified user@hostname can be matched against an entry in an access list. | |
void | sendToNickServ (UserList *tmp, char **args, int numargs) |
Message handler for NickServ. | |
char * | regnick_ugethost (UserList *user, RegNickList *target, int sM) |
void | addAccessMask (char *mask, UserList *nick) |
Handle the ACCESS ADD command. | |
void | delAccessMask (char *mask, UserList *nick) |
Handle the ACCESS DEL command. | |
void | guest_cnick (UserList *ul) |
void | addGhost (char *ghost) |
Add a NickServ enforcer. | |
void | delGhost (char *ghost) |
Remove a NickServ enforcer. | |
void | delTimedGhost (char *ghost) |
Handle expiration of a NickServ ghost timer by removing the enforcer. | |
int | isGhost (char *ghost) |
int | BadPwNick (UserList *sender, RegNickList *target) |
Record a bad password attempt by `sender' on `target'. | |
int | GoodPwNick (UserList *sender, RegNickList *target) |
Record a successful password entry by `sender' on `target'. | |
int | addFlood (UserList *tmp, int addtoflood) |
Services Flood Protection -- addFlood adds the specified amount to a user's flood level, assuming this was added within tens econds of the last addition otherwise, simply makes floodlevel equal to whatever is sent. This function also updates lastmsg. | |
void | expireNicks (char *dummy) |
This function handles timed NickServ expiration runs, deletes non-held nicknames that have not been used for their maximum inactivity period before expiration. | |
int | addAccItem (RegNickList *nick, char *mask) |
Handles the work of placing an access item in a registered nickname's access list. | |
int | delAccItem (RegNickList *nick, char *mask, char *deletedmask) |
Handles the work of removing an access item from a registered nickname's access list. | |
void | syncNickData (time_t next) |
Saves the NickServ database. | |
void | syncMemoData (time_t next) |
Saves the MemoServ database. | |
cmd_return | ms_save (UserList *nick, char **args, int numargs) |
Sync MemoServ database to disk. | |
void | addOpData (RegNickList *nick) |
Adds a user with opflags to the index. | |
void | delOpData (RegNickList *nick) |
Removes and frees a user's index item from the oper index. | |
cmd_return | ns_help (UserList *nick, char **args, int numargs) |
cmd_return | ns_vacation (UserList *nick, char **args, int numargs) |
cmd_return | ns_identify (UserList *nick, char **args, int numargs) |
cmd_return | ns_set_passwd (nss_tab *setEnt, UserList *nick, char *args[], int numargs) |
The /NICKSERV SET PASSWORD command. | |
cmd_return | ns_set_url (nss_tab *setEnt, UserList *nick, char *args[], int numargs) |
The /NICKSERV SET URL command. | |
cmd_return | ns_set_encrypt (nss_tab *setEnt, UserList *nick, char *args[], int numargs) |
The /NICKSERV SET URL command. | |
cmd_return | ns_set_idtime (nss_tab *setEnt, UserList *nick, char *args[], int numargs) |
The /NICKSERV SET IDTIME command. | |
cmd_return | ns_set_email (nss_tab *setEnt, UserList *nick, char *args[], int numargs) |
The /NICKSERV SET EMAIL command. | |
cmd_return | ns_set (UserList *nick, char **args, int numargs) |
cmd_return | ns_register (UserList *nick, char **args, int numargs) |
void | SendNickInfo (UserList *nick, RegNickList *rnl, int terseOption) |
cmd_return | ns_info (UserList *nick, char **args, int numargs) |
Query NickServ for information on a nickname. | |
cmd_return | ns_drop (UserList *nick, char **args, int numargs) |
Drop a registered nickname. | |
cmd_return | ns_addmask (UserList *nick, char **args, int numargs) |
cmd_return | ns_access (UserList *nick, char **args, int numargs) |
cmd_return | ns_acc (UserList *nick, char **args, int numargs) |
cmd_return | ns_ghost (UserList *nick, char **args, int numargs) |
cmd_return | ns_recover (UserList *nick, char **args, int numargs) |
cmd_return | ns_release (UserList *nick, char **args, int numargs) |
cmd_return | ns_setopflags (UserList *nick, char **args, int numargs) |
Query/Change Operator flags. | |
cmd_return | ns_mark (UserList *nick, char **args, int numargs) |
cmd_return | ns_setflags (UserList *nick, char **args, int numargs) |
cmd_return | ns_banish (UserList *nick, char **args, int numargs) |
cmd_return | ns_getrealpass (UserList *nick, char **args, int numargs) |
cmd_return | ns_getpass (UserList *nick, char **args, int numargs) |
cmd_return | ns_delete (UserList *nick, char **args, int numargs) |
cmd_return | ns_save (UserList *nick, char **args, int numargs) |
Save NickServ database. | |
cmd_return | ns_list (UserList *nick, char **args, int numargs) |
cmd_return | ns_bypass (UserList *nick, char **args, int numargs) |
cmd_return | ns_logoff (UserList *nick, char **args, int numargs) |
Variables | |
OperList * | firstOper |
First item in the index to oper nicks. | |
unsigned long | top_cnick = 0 |
Number of CNICKs done. | |
int | totalghosts = 0 |
Current number of ghosts. | |
opflag_table | opflags [] |
Database of Oper flags. | |
char * | cnick_prefixes [] |
Nickname prefixes services uses when a user's nick is force-changed. | |
GhostList * | firstGhost = NULL |
First Enforcer. | |
GhostList * | lastGhost = NULL |
Last Enforcer. | |
interp::service_cmd_t | nickserv_commands [] |
NickServ command dispatch table. |
Functions related to the manipulation of registered nick data and nickname authentication and associated operation commands.
Max Byrd
Greg Poma
James Hess
Definition in file nickserv.c.
|
NickServ set classes.
Definition at line 160 of file nickserv.c. |
|
Handle the ACCESS ADD command.
Definition at line 1472 of file nickserv.c. References AccessLimit, addAccItem(), isIdentified(), mask(), _userlist::nick, NickServ, _userlist::reg, and sSend(). Referenced by ns_addmask(). |
|
Handles the work of placing an access item in a registered nickname's access list.
Definition at line 2207 of file nickserv.c. Referenced by addAccessMask(), and readNickData(). |
|
Services Flood Protection -- addFlood adds the specified amount to a user's flood level, assuming this was added within tens econds of the last addition otherwise, simply makes floodlevel equal to whatever is sent. This function also updates lastmsg.
Definition at line 2053 of file nickserv.c. Referenced by BadPwChan(), BadPwNick(), gs_roll(), and parseLine(). |
|
Add a NickServ enforcer.
Definition at line 1811 of file nickserv.c. References addUser(), firstGhost, ghost_struct::ghost, GhostList, lastGhost, ghost_struct::next, oalloc(), ghost_struct::previous, strncpyzt, totalghosts, and totalusers. Referenced by addNewUser(), changeNick(), checkAkillAllUsers(), and parseLine(). |
|
Handles a server NICK message by adding a new user connection.
Definition at line 417 of file nickserv.c. References addClone(), addGhost(), addNick(), annoyNickThief(), applyAkill(), _userlist::caccess, checkAccess(), corelog, CTime, delTimedGhost(), dlogEntry(), freeUserListRec(), getNickData(), getRegNickData(), _userlist::host, service_struct::host, _userlist::idnum, InfoServ, isGhost(), logDump(), mostusers, service_struct::name, NBANISH, NDBISMASK, NDOEDIT, _userlist::nick, NickSeeUser(), NickServ, NISAHURT, NOISMASK, oalloc(), _userlist::oflags, OperServ, parse_str(), PutReply, _userlist::reg, RegId::SetNext(), SetUserNickHostReal(), sSend(), timer(), _userlist::timestamp, top_user_idnum(), totalusers, _userlist::user, and VERSION_NUM. Referenced by parseLine(). |
|
Adds the online user item to the user hash tables and user list.
Definition at line 1129 of file nickserv.c. References dlogEntry(), getHashKey(), LIST_ENTRY_INIT, LIST_INSERT_HEAD, _userlist::nick, totalusers, and UserHash. Referenced by addNewUser(), and changeNick(). |
|
Adds a user with opflags to the index.
Definition at line 2335 of file nickserv.c. References firstOper, operlist_struct::next, oalloc(), OROOT, and operlist_struct::who. Referenced by readConf(), and readNickData(). |
|
Adds the registered nick item to the nickname hash tables and user list.
Definition at line 1154 of file nickserv.c. References assert, corelog, freeRegNickListRec(), getHashKey(), RegId::getHashKey(), getRegNickData(), RegNickIdMap::id, LIST_ENTRY_INIT, LIST_FIRST, LIST_INSERT_AFTER, LIST_INSERT_BEFORE, LIST_INSERT_HEAD, LIST_NEXT, logDump(), RegNickIdMap::nick, oalloc(), RegNickHash, and RegNickIdHash. Referenced by IpcType::makeMessage(), and readNickData(). |
|
Basically bother a nick owner into giving a nick back (and/or enforce nick kill).
Definition at line 1613 of file nickserv.c. References _userlist::host, killide(), myname, _userlist::nick, NickServ, NKILL, _userlist::reg, sSend(), and timer(). Referenced by addNewUser(), and changeNick(). |
|
|
|
Definition at line 1067 of file nickserv.c. References isIdentified(), isOper(), OAKILL, and _userlist::reg. |
|
Handles a NICK command, allowing nicknames to change.
Definition at line 563 of file nickserv.c. References addGhost(), addNick(), annoyNickThief(), _userlist::caccess, changeNickOnAllChans(), checkAccess(), clearIdentify(), CTime, delNick(), delTimedGhost(), dlogEntry(), _userlist::floodlevel, _userlist::gecos, getNickData(), getRegNickData(), _userlist::host, service_struct::host, _userlist::id, _userlist::idnum, _identifydata::idnum, isAKilled(), isGhost(), isIdentified(), killide(), myname, service_struct::name, NBANISH, NCNICK, nDesynch(), _userlist::nick, _identifydata::nick, NickSeeUser(), NickServ, oalloc(), _userlist::oflags, _userlist::reg, remUser(), RegId::SetNext(), SetUserNickHostReal(), sSend(), timer(), _userlist::timestamp, _identifydata::timestamp, top_user_idnum(), and _userlist::user. Referenced by parseLine(). |
|
Used to test whether the specified user@hostname can be matched against an entry in an access list.
Definition at line 1343 of file nickserv.c. References LIST_FIRST, LIST_NEXT, _naccesslist::mask, and match(). Referenced by addNewUser(), changeNick(), getMiscChanOp(), and isRecognized(). |
|
Clears any identify by an online user.
Definition at line 819 of file nickserv.c. References _userlist::id, _identifydata::idnum, _identifydata::nick, and _identifydata::timestamp. Referenced by changeNick(), and delNick(). |
|
Nag users who never set an e-mail address and never did the '/NICKSERV SET ADDRESS NONE'.
Definition at line 1564 of file nickserv.c. References _userlist::nick, NickServ, _userlist::reg, and sSend(). Referenced by NickSeeUser(). |
|
Handle the ACCESS DEL command.
Definition at line 1519 of file nickserv.c. References delAccItem(), isIdentified(), LIST_FIRST, LIST_NEXT, mask(), _naccesslist::mask, _userlist::nick, NickServ, _userlist::reg, and sSend(). |
|
Handles the work of removing an access item from a registered nickname's access list.
Definition at line 2255 of file nickserv.c. Referenced by delAccessMask(). |
|
Remove a NickServ enforcer.
Definition at line 1859 of file nickserv.c. References firstGhost, getGhost(), GhostList, lastGhost, ghost_struct::next, ghost_struct::previous, sSend(), totalghosts, and totalusers. Referenced by parseLine(). |
|
Removes the online user item from the user hash tables and user list. When this function returns, 'killme' is no longer a valid pointer.
Definition at line 1222 of file nickserv.c. References clearIdentify(), flush_ad(), freeUserListRec(), LIST_REMOVE, and totalusers. Referenced by changeNick(), and remUser(). |
|
Removes and frees a user's index item from the oper index.
Definition at line 2362 of file nickserv.c. References firstOper, operlist_struct::next, and operlist_struct::who. Referenced by delRegNick(), and readConf(). |
|
Removes the registered nick item from the nickname hash tables and nick list. When this function returns, 'killme' is no longer a valid pointer.
Definition at line 1243 of file nickserv.c. References delMemo(), delOpData(), freeRegNickListRec(), LIST_FIRST, LIST_NEXT, LIST_REMOVE, and _memolist::realto. |
|
Handle expiration of a NickServ ghost timer by removing the enforcer.
Definition at line 1898 of file nickserv.c. Referenced by addNewUser(), changeNick(), checkAkillAllUsers(), and parseLine(). |
|
This function handles timed NickServ expiration runs, deletes non-held nicknames that have not been used for their maximum inactivity period before expiration. <
Definition at line 2122 of file nickserv.c. References CTime, mostnicks, NBANISH, and NHOLD. Referenced by parseLine(). |
|
|
|
Retrieve information about a NickServ enforcer.
Definition at line 1908 of file nickserv.c. References firstGhost, ghost_struct::ghost, and GhostList. Referenced by delGhost(). |
|
Searches the user hash table for information about the specified online user by nickname. Returns a pointer to the online user item if found, otherwise returns NULL.
Definition at line 1288 of file nickserv.c. References getHashKey(), LIST_FIRST, LIST_NEXT, _userlist::nick, and UserHash. Referenced by addNewUser(), changeNick(), getMiscChanOp(), guest_cnick(), isFounder(), killide(), make_clone(), IpcType::makeMessage(), nDesynch(), parseLine(), IpcType::queryRegNickMessage(), regnick_ugethost(), removeAkill(), removeAkillType(), remUser(), sendToNickServ(), setChanMode(), setFlags(), and setMode(). |
|
Returns the effective flags of an online user.
Definition at line 946 of file nickserv.c. References isIdentified(), isOper(), OACC, OOPER, OPFLAG_PLUS, OROOT, _userlist::reg, and userOverriding(). Referenced by sendToChanServ(), sendToGameServ(), sendToInfoServ(), sendToMemoServ(), sendToNickServ(), and sendToOperServ(). |
|
Searches the regnick hash table for information about the specified registered nick data by nickname.
Definition at line 1312 of file nickserv.c. References getHashKey(), LIST_FIRST, LIST_NEXT, and RegNickHash. Referenced by addNewUser(), addRegNick(), IpcType::alterObjMessage(), IpcType::authObjMessage(), changeNick(), getChanOpData(), getMiscChanOp(), killide(), make_clone(), IpcType::makeMessage(), ms_DelMemoBlock(), IpcType::queryObjMessage(), readChanData(), readConf(), readMemoData(), readNickData(), and setMode(). |
|
Format of a CNICK message Definition at line 1649 of file nickserv.c. References cnick_prefixes, CTime, dice(), getNickData(), myname, NCNICK, _userlist::nick, NickServ, NUM_CNICKS, _userlist::oflags, sSend(), and top_cnick. |
|
Definition at line 1926 of file nickserv.c. Referenced by addNewUser(), changeNick(), and parseLine(). |
|
Definition at line 1025 of file nickserv.c. References isIdentified(), isOper(), OGRP, and _userlist::reg. |
|
Definition at line 1047 of file nickserv.c. References isIdentified(), NISHELPOP, _userlist::oflags, and _userlist::reg. |
|
Reports TRUE or FALSE indicating whether or not the specified user is identified to the specified nickname.
Definition at line 842 of file nickserv.c. References _userlist::caccess, _userlist::id, _identifydata::idnum, NFORCEXFER, _identifydata::nick, NVACATION, _userlist::reg, _identifydata::timestamp, and _userlist::timestamp. Referenced by addAccessMask(), canAkill(), changeNick(), delAccessMask(), getMiscChanOp(), getOpFlags(), isGRPop(), isHelpop(), isRecognized(), isRoot(), isServop(), killide(), opFlagged(), remUser(), and setMode(). |
|
Definition at line 887 of file nickserv.c. References NISOPER, and _userlist::oflags. Referenced by addUserToChan(), canAkill(), getMiscChanOp(), getOpFlags(), is_listnews(), is_sendinfo(), isGRPop(), isRoot(), isServop(), newsNag(), opFlagged(), parseLine(), and sendToOperServ(). |
|
Is a password acceptable? This procedure tests whether a password is acceptable or not in terms of technical devices that _need_ to have the password fit into certain ranges. |
|
Reports TRUE or FALSE indicating whether or not the specified user is recognized by access list (ACC 2) for the specified nickname.
Definition at line 870 of file nickserv.c. References _userlist::caccess, checkAccess(), _userlist::host, isIdentified(), NVACATION, _userlist::reg, and _userlist::user. Referenced by getMiscChanOp(), isFounder(), regnick_ugethost(), and setMode(). |
|
Definition at line 983 of file nickserv.c. References isIdentified(), isOper(), OROOT, and _userlist::reg. |
|
Definition at line 1003 of file nickserv.c. References isIdentified(), isOper(), OROOT, OSERVOP, and _userlist::reg. |
|
Timed force nick change (or nag) of a user whom services does not believe owns the nickname.
Definition at line 1718 of file nickserv.c. References corelog, getNickData(), getRegNickData(), _userlist::host, isIdentified(), killide(), logDump(), myname, NickServ, sSend(), and timer(). Referenced by annoyNickThief(), changeNick(), and killide(). |
|
Handle user desyncs.
Definition at line 252 of file nickserv.c. References dlogEntry(), getNickData(), myname, NickServ, and sSend(). Referenced by changeNick(), parseLine(), remUser(), sendToNickServ(), setFlags(), and setMode(). |
|
Get a registered nick encryption prefix.
Definition at line 400 of file nickserv.c. References NENCRYPT. |
|
NickServ sees a user. Updates NickServ "last seen time", timestamp data, "last seen userhost", and if gecos tracking is enabled, "last seen realname/gecos."
Definition at line 329 of file nickserv.c. References checkMemos(), complainAboutEmail(), CTime, _userlist::gecos, _userlist::host, newsNag(), NVACATION, SetDynBuffer(), strncpyzt, and _userlist::user. Referenced by addNewUser(), and changeNick(). |
|
Acc Acc {[<nick>] | <nick1> <nick2>} Check identified/NickServ recognition level of a user -Mysid Definition at line 3959 of file nickserv.c. |
|
Access Access add <mask> Access del <mask> Access del <number> Access del - Purpose: Maintain a NickName's access list
Definition at line 3818 of file nickserv.c. References RET_OK. |
|
Addmask Addmask Add a default hostmask Definition at line 3768 of file nickserv.c. References addAccessMask(), _userlist::host, mask(), RET_OK_DB, SetDynBuffer(), and _userlist::user. |
|
Banish Banish <nick> Banish a NickName from use and registration by users Definition at line 4795 of file nickserv.c. References RET_NOPERM. |
|
Debugging command, get password field bits from user structure
Definition at line 4895 of file nickserv.c. References RET_SYNTAX. |
|
Ghost NghostCmd(nick, args, numargs)
Definition at line 4046 of file nickserv.c. References NickServ, and RET_SYNTAX. |
|
Mark Mark <nick> Check state of mark flag Mark <nick> ("on" | "off") On means mark, off means unmark. A nick mark is an indication that an oper should be particularly wary in handling a password request for the nickname. Getrealpass, and getpass should both warn about this, but only GRp does. -Mysid Definition at line 4597 of file nickserv.c. References RET_SYNTAX, and sSend(). |
|
Recover ns_recover(nick, args, numargs)
Definition at line 4156 of file nickserv.c. References NickServ, and RET_SYNTAX. |
|
Register Register <email> Register <password> <email> Request a new nickname, activation code sent to <email> Arguments:
Definition at line 3199 of file nickserv.c. References RET_EFAULT, RET_KILLED, and sSend(). |
|
Release Release <nick> <password> args[0..2] Definition at line 4258 of file nickserv.c. References NickServ, and RET_NOTARGET. |
|
Set Set <setting> *{ <new value> } Set various NickName options such as kill enforcement or idtime. -Mysid Definition at line 3077 of file nickserv.c. |
|
Setflag Setflag <nick> [+-]<flags> Change a NickName's settings or flags Definition at line 4668 of file nickserv.c. References RET_NOPERM. |
|
Query/Change Operator flags. Setopflags (/NS Setop) Setop <nick> Show access flags of nick. Setop <nick> {(+|-) Flags ...} Flags = [AOokKpsSNCIGrjL!cahD] Change access flags of nick. Setop del <nick> Strip nick of access flags. Setop add <nick> Give nick basic oper flags (setop +o does this too unless overriden with setop <nick> +o-pka). Definition at line 4340 of file nickserv.c. |
|
Definition at line 912 of file nickserv.c. References FALSE, isIdentified(), isOper(), OACC, OOPER, OPFLAG_ROOT, OROOT, _userlist::reg, and userOverriding(). Referenced by cs_set_memolvl(), do_chanop_add(), getMiscChanOp(), is_postnews(), isFounder(), removeAkill(), and removeAkillType(). |
|
Print a password appropriately encoded according to its encryption type (if applicable).
|
|
Definition at line 1422 of file nickserv.c. References genHostMask(), getNickData(), isRecognized(), NDBISMASK, NISOPER, NOISMASK, _userlist::oflags, and strncpyzt. Referenced by do_chanop_list(), and GoodPwNick(). |
|
Handles the QUIT server message, it removes a user from the nickname list and destroys the allocated memory area.
Definition at line 1095 of file nickserv.c. References cleanMemos(), CTime, delClone(), delNick(), dlogEntry(), getNickData(), _userlist::host, isIdentified(), nDesynch(), _userlist::reg, remFromAllChans(), and _userlist::user. Referenced by changeNick(), checkAkillAllUsers(), and parseLine(). |
|
Info NinfoCmd(nick, args, numargs)
/msg NickServ Info [<nick>] Simple function.. checks various things on the nick and reports them to users and opers. Revision History: Mon Jun 15 15:23:30 PDT 1998 by some2
Sat Oct 2 11:05:53 PDT 1999 by Echostar
Fri Oct 09:46:36 CST 2001 by Mysid
Definition at line 3448 of file nickserv.c. |
|
Message handler for NickServ.
Definition at line 1376 of file nickserv.c. References CTime, getNickData(), getOpFlags(), nDesynch(), nextNsync, _userlist::nick, NickServ, nickserv_commands, RET_FAIL, RET_OK_DB, and sSend(). Referenced by parseLine(). |
|
Sets online flags of an online user structure.
Definition at line 771 of file nickserv.c. References dlogEntry(), getNickData(), nDesynch(), and _userlist::oflags. Referenced by parseLine(). |
|
Identifies an online user to a registered nickname.
Definition at line 799 of file nickserv.c. References CTime, _userlist::id, _identifydata::idnum, MAX, _userlist::nick, _identifydata::nick, oalloc(), _identifydata::timestamp, and _userlist::timestamp. |
|
Changes the modes of an online user.
Definition at line 696 of file nickserv.c. References dlogEntry(), getNickData(), getRegNickData(), isIdentified(), isRecognized(), NDBISMASK, nDesynch(), _userlist::nick, NISAHURT, NISHELPOP, NISOPER, NOISMASK, and _userlist::oflags. Referenced by parseLine(). |
|
Assigns the nickname, username, host, and possibly gecos of an online user object. Sets the nick, user, and hostname of an online user object
Definition at line 375 of file nickserv.c. References _userlist::gecos, _userlist::host, _userlist::nick, SetDynBuffer(), strncpyzt, and _userlist::user. Referenced by addNewUser(), and changeNick(). |
|
Saves the MemoServ database.
Definition at line 2302 of file nickserv.c. References nextMsync. Referenced by sync_cfg(). |
|
Saves the NickServ database.
Definition at line 2292 of file nickserv.c. References nextNsync. Referenced by sync_cfg(). |
|
Highest registered nick identifier Id numbers 0 - 1000 are reserved for internal use |
|
Initial value: { "Visitor-", "Nobody-", "Unnamed-", "Nickless-", "Nonick-", "Untitled-" }
Definition at line 178 of file nickserv.c. Referenced by guest_cnick(). |
|
Initial value: { OPFLAG('A', OADMIN, "ADMIN"), OPFLAG('O', OSERVOP, "SERVOP"), OPFLAG('o', OOPER, "o"), OPFLAG('k', ORAKILL, "AKILL"), OPFLAG('K', OAKILL, "XAKILL"), OPFLAG('p', OINFOPOST, "INFO-POST"), OPFLAG('s', OSETOP, "SETOP"), OPFLAG('S', OSETFLAG, "SETFLAG"), OPFLAG('N', ONBANDEL, "NBANDEL"), OPFLAG('C', OCBANDEL, "CBANDEL"), OPFLAG('I', OIGNORE, "IGNORE"), OPFLAG('G', OGRP, "GRp"), OPFLAG('r', ORAW, "RAW"), OPFLAG('j', OJUPE, "JUPE"), OPFLAG('L', OLIST, "LIST"), OPFLAG('!', OPROT, "FLAG-LOCK"), OPFLAG('c', OCLONE, "CLONE"), OPFLAG('a', OACC, "OVERRIDE"), OPFLAG('h', OHELPOP, "HELPOP"), OPFLAG('H', OAHURT, "AHURT"), OPFLAG('D', ODMOD, "DIRECTMOD"), OPFLAG('*', OPFLAG_ADMIN | OPFLAG_DEFAULT | OPFLAG_ROOTSET, "*"), { (char)0, (int)0, (char *)0 } }
Definition at line 129 of file nickserv.c. Referenced by ns_setopflags(). |