Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

string.h File Reference

String declarations and reply settings. More...

Go to the source code of this file.

Classes

struct  reply_string

Defines

#define PutError(cs, ct, rn, n1, n2, n3)   reply(cs, ct, rn, n1, n2, n3)
 Send out an error message.

#define PutReply(cs, ct, rn, n1, n2, n3)   reply(cs, ct, rn, n1, n2, n3)
 Send out an ordinary message.

#define PutHelpInfo(cs, ct, n1)   reply(cs, ct, RPL_MSGFORHELP, cs, n1, 0)
 Send out an info/help response ex: "see /xxxxserv help for more info".


Enumerations

enum  help_show_type { _dummy_item_hst_ }
enum  reply_type {
  ERR_NEEDREGNICK_1ARG, ERR_NICKNOTREG_1ARG, ERR_NICKBANISHED_1ARG, ERR_NOAHURTBYPASS,
  ERR_BADPW, ERR_NOACCESS, ERR_NOTIDENTIFIED, ERR_AKILLSYNTAX_1ARG,
  RPL_AKILLHELP_2ARG, RPL_SWITCHIS_ARG2, RPL_SWITCHNOW_ARG2, RPL_AHURTBYPASS,
  RPL_BYPASSISLOGGED, RPL_IDENTIFYOK_NOARG, RPL_IDENTIFYOK_NICKARG, RPL_CHKEY_DEAD,
  RPL_MSGFORHELP, RPL_MASKHELP, RPL_AUTH_TYPES, RPL_AUTH_SEED,
  RPL_AUTH_OK_0ARG, RPL_AUTH_OK_1ARG, RPL_AUTH_NORESPONSE, ERR_AUTH_CHAL,
  ERR_AUTH_NOTREGISTERED_2ARG, ERR_AUTH_BAD_1ARG, ERR_AUTH_NOTYPE, RPL_INFONLINE_ID,
  RPL_INFONLINE_NOID, RPL_NS_BANISH, RPL_NS_ENDINFO, RPL_IS_GREET_1ARG,
  RPL_IS_COPYRIGHT_1ARG, RPL_IS_NEWITEM, RPL_IS_NEWITEMS_1ARG, RPL_IS_HOWTOLIST,
  ERR_IS_UNKNOWNCMD_1ARG, ERR_IS_NEEDPARAM, ERR_IS_NEEDNUM, ERR_IS_NOARTICLE_ARG1,
  ERR_IS_NOARTICLES, RPL_IS_END_OF_LIST, RPL_IS_READ_HELP, ERR_IS_NEEDIMPORTANCE,
  ERR_IS_TOOLONG, RPL_IS_POSTED, RPL_IS_DELETED_1ARG, ERR_CS_INVALIDCHAN_1ARG,
  ERR_CHANNOTREG_1ARG, ERR_INVALID_TRIGVAR, ERR_SERVICE_NEEDREGNICK_1ARG, RPL_DBSAVE_1ARG,
  ERR_NEEDMEMONUM_1ARG, RPL_MEMO_HEADER1_3ARG, ERR_NOSUCH_MEMO_1ARG, RPL_MEMO_SAVED_1ARG,
  ERR_NOMEMOS, RPL_MS_LIST_HEAD1, RPL_MS_LIST_HEAD2, RPL_MS_LIST_FOOT,
  ERR_MS_NEEDNICKCHANMEMO, ERR_NOTREG_1ARG, ERR_MS_NOACCESS_1ARG, ERR_MS_TOOLONG_2ARG,
  RPL_MS_ALLDELETED_1ARG, RPL_MS_DELETED_1ARG, ERR_MS_DEL_SPECIFYMEMO, ERR_MS_BADINDEXNUMBER,
  RPL_MS_CLEAN_2ARG, ERR_MS_NOTFORWARD, RPL_MS_FORWARD_OFF, ERR_MS_FORWARD_SYNTAX_1ARG,
  ERR_BADPW_NICK_1ARG, RPL_MS_FORWARD_ON_1ARG, ERR_MS_NOMEMO_NEEDONOFF, RPL_MS_NOMEMO_ON,
  RPL_MS_NOMEMO_OFF, ERR_MS_NOMEMO_BADPARAM, RPL_MS_UNSEND_HEAD1, RPL_MS_UNSEND_HEAD2,
  RPL_MS_UNSENT_ALL, RPL_MS_UNSENT_1ARG, ERR_MS_UNSEND_NOSUCH_1ARG, RPL_MS_MEMOWAITING,
  RPL_MS_MEMOWAITING_1ARG, RPL_MS_MEMO2_2ARG, RPL_MS_MEMO3_2ARG, RPL_MS_MEMO4n_2ARG,
  ERR_MS_MBLOCK_NONE, RPL_MS_MBLOCK_HEAD, ERR_MS_MBLOCK_BADPARAM_1ARG, ERR_MS_MBLOCK_NOCHANGE,
  ERR_MS_MBLOCK_NOSUCH_1ARG, RPL_MS_MBLOCK_DELETED_1ARG, RPL_MS_MBLOCK_ADDED_1ARG, ERR_MS_MBLOCK_ALREADY_1ARG,
  ERR_MS_MBLOCK_TOOMANY, MAX_REPLY_STRING_NUM
}
 Reply/Error/message codes.


Functions

void reply (const char *cService, struct _userlist *cTo, int replyNum,...)
const char * get_reply (reply_type reply)
 Get a reply string.


Variables

reply_string reply_table []


Detailed Description

String declarations and reply settings.

Author:
James Hess
Date:
August, 2001
Id
string.h,v 1.1.1.1 2003/07/04 02:56:59 Mysid Exp

Definition in file string.h.


Function Documentation

const char* get_reply reply_type  reply  ) 
 

Get a reply string.

Parameters:
reply Reply type (ex: #ERR_NEEDREGNICK) (constraint: Must use a RPL_xxx or ERR_xxx constant)
Returns:
Pointer to the requested error string or a message of unknown error

Definition at line 55 of file string.cc.

References reply().


Generated at Sat Oct 25 20:56:12 2003 for Services using Doxygen.
Services Copyr. 1996-2001 Chip Norkus, Max Byrd, Greg Poma, Michael Graff, James Hess, Dafydd James. All rights reserved See LICENSE for licensing information.