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

string.cc File Reference

Services string replies/notices procedures. More...

#include "services.h"
#include "./string.h"

Go to the source code of this file.

Functions

const char * get_reply (reply_type reply)
 Get a reply string.

void reply (const char *cService, UserList *nTo, int replyNum,...)
 Send out a reply or error string to a user.


Detailed Description

Services string replies/notices procedures.

The idea is to move all handling of error/reply strings into a single module so that multi-language support becomes remotely possible.

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

Definition in file string.cc.


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().

void reply const char *  cService,
UserList nTo,
int  replyNum,
... 
 

Send out a reply or error string to a user.

Parameters:
cService Service to send out the message (constraint: Must be one of the services registered at startup)
nTo Target nickname record
replyNum Reply selected for transmission
... Format string, dependent on the error/reply string

Definition at line 75 of file string.cc.

References net_write, _userlist::nick, and reply().

Referenced by get_reply(), and 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.