diff options
Diffstat (limited to 'docs/man/man3/serverrec.3')
-rw-r--r-- | docs/man/man3/serverrec.3 | 143 |
1 files changed, 78 insertions, 65 deletions
diff --git a/docs/man/man3/serverrec.3 b/docs/man/man3/serverrec.3 index 72b563865..bb8a99543 100644 --- a/docs/man/man3/serverrec.3 +++ b/docs/man/man3/serverrec.3 @@ -1,8 +1,8 @@ -.TH "serverrec" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*- +.TH "serverrec" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME -serverrec \- A class that defines the local server or a remote server. +serverrec \- A class that defines the local server or a remote server. .PP .SH SYNOPSIS @@ -18,15 +18,15 @@ Inherits \fBconnection\fP. .ti -1c .RI "\fBserverrec\fP ()" .br -.RI "\fIConstructor.\fP" +.RI "\fIConstructor. \fP" .ti -1c .RI "\fBserverrec\fP (char *n, long ver, bool jupe)" .br -.RI "\fIConstructor which initialises some of the main variables.\fP" +.RI "\fIConstructor which initialises some of the main variables. \fP" .ti -1c .RI "\fB~serverrec\fP ()" .br -.RI "\fIDestructor.\fP" +.RI "\fIDestructor. \fP" .in -1c .SS "Public Attributes" @@ -34,140 +34,153 @@ Inherits \fBconnection\fP. .ti -1c .RI "char \fBname\fP [MAXBUF]" .br -.RI "\fIserver name\fP" +.RI "\fIserver name \fP" .ti -1c .RI "long \fBpingtime\fP" .br -.RI "\fIlast ping response (ms)\fP" +.RI "\fIlast ping response (ms) \fP" .ti -1c .RI "long \fBusercount_i\fP" .br -.RI "\fIinvisible users on server\fP" +.RI "\fIinvisible users on server \fP" .ti -1c .RI "long \fBusercount\fP" .br -.RI "\fInon-invisible users on server\fP" +.RI "\fInon-invisible users on server \fP" .ti -1c .RI "long \fBopercount\fP" .br -.RI "\fIopers on server\fP" +.RI "\fIopers on server \fP" .ti -1c .RI "int \fBhops_away\fP" .br -.RI "\fInumber of hops away (for quick access)\fP" +.RI "\fInumber of hops away (for quick access) \fP" .ti -1c .RI "long \fBversion\fP" .br -.RI "\fIircd version\fP" +.RI "\fIircd version \fP" .ti -1c .RI "bool \fBjupiter\fP" .br -.RI "\fIis a JUPE server (faked to enforce a server ban)\fP" +.RI "\fIis a JUPE server (faked to enforce a server ban) \fP" .ti -1c .RI "char \fBdescription\fP [MAXBUF]" .br -.RI "\fIDescription of the server.\fP" +.RI "\fIDescription of the server. \fP" +.ti -1c +.RI "char \fBnickserv\fP [NICKMAX]" +.br +.RI "\fIHolds nickserv's name on U:lined (services) servers (this is a kludge for ircservices which ASSUMES things :/). \fP" .ti -1c .RI "bool \fBsync_soon\fP" .br .in -1c .SH "Detailed Description" .PP -A class that defines the local server or a remote server.Definition at line 19 of file servers.h. +A class that defines the local server or a remote server. Definition at line 30 of file servers.h. .SH "Constructor & Destructor Documentation" .PP .SS "serverrec::serverrec ()" .PP -Constructor.Definition at line 12 of file servers.cpp. +Constructor. Definition at line 23 of file servers.cpp. .PP -References connection::fd, hops_away, jupiter, connection::lastping, opercount, pingtime, connection::signon, sync_soon, usercount, usercount_i, and version. +References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, pingtime, connection::signon, sync_soon, usercount, usercount_i, and version. .PP .nf -13 { -14 strcpy(name,''); -15 pingtime = 0; -16 lastping = time(NULL); -17 usercount_i = usercount = opercount = version = 0; -18 hops_away = 1; -19 signon = time(NULL); -20 jupiter = false; -21 fd = 0; -22 sync_soon = false; -23 } +24 { +25 strlcpy(name,'',256); +26 pingtime = 0; +27 lastping = time(NULL); +28 usercount_i = usercount = opercount = version = 0; +29 hops_away = 1; +30 signon = time(NULL); +31 jupiter = false; +32 fd = 0; +33 sync_soon = false; +34 strlcpy(nickserv,'',NICKMAX); +35 } .fi .SS "serverrec::serverrec (char * n, long ver, bool jupe)" .PP -Constructor which initialises some of the main variables.Definition at line 30 of file servers.cpp. +Constructor which initialises some of the main variables. Definition at line 42 of file servers.cpp. .PP -References connection::fd, hops_away, jupiter, connection::lastping, opercount, connection::signon, sync_soon, usercount, usercount_i, and version. +References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, connection::signon, sync_soon, usercount, usercount_i, and version. .PP .nf -31 { -32 strcpy(name,n); -33 lastping = time(NULL); -34 usercount_i = usercount = opercount = 0; -35 version = ver; -36 hops_away = 1; -37 signon = time(NULL); -38 jupiter = jupe; -39 fd = 0; -40 sync_soon = false; -41 } +43 { +44 strlcpy(name,n,256); +45 lastping = time(NULL); +46 usercount_i = usercount = opercount = 0; +47 version = ver; +48 hops_away = 1; +49 signon = time(NULL); +50 jupiter = jupe; +51 fd = 0; +52 sync_soon = false; +53 strlcpy(nickserv,'',NICKMAX); +54 } .fi -.SS "serverrec::~serverrec ()" +.SS "serverrec::~\fBserverrec\fP ()" .PP -Destructor.Definition at line 26 of file servers.cpp. +Destructor. Definition at line 38 of file servers.cpp. .PP .nf -27 { -28 } +39 { +40 } .fi .SH "Member Data Documentation" .PP -.SS "char serverrec::description[MAXBUF]" +.SS "char \fBserverrec::description\fP[MAXBUF]" .PP -Description of the server.Definition at line 50 of file servers.h. -.SS "int serverrec::hops_away" +Description of the server. Definition at line 61 of file servers.h. +.SS "int \fBserverrec::hops_away\fP" .PP -number of hops away (for quick access)Definition at line 40 of file servers.h. +number of hops away (for quick access) Definition at line 51 of file servers.h. .PP Referenced by serverrec(). -.SS "bool serverrec::jupiter" +.SS "bool \fBserverrec::jupiter\fP" .PP -is a JUPE server (faked to enforce a server ban)Definition at line 46 of file servers.h. +is a JUPE server (faked to enforce a server ban) Definition at line 57 of file servers.h. .PP Referenced by serverrec(). -.SS "char serverrec::name[MAXBUF]" +.SS "char \fBserverrec::name\fP[MAXBUF]" .PP -server nameDefinition at line 25 of file servers.h. -.SS "long serverrec::opercount" +server name Definition at line 36 of file servers.h. +.PP +Referenced by serverrec(). +.SS "char \fBserverrec::nickserv\fP[NICKMAX]" +.PP +Holds nickserv's name on U:lined (services) servers (this is a kludge for ircservices which ASSUMES things :/). Definition at line 65 of file servers.h. +.PP +Referenced by serverrec(). +.SS "long \fBserverrec::opercount\fP" .PP -opers on serverDefinition at line 37 of file servers.h. +opers on server Definition at line 48 of file servers.h. .PP Referenced by serverrec(). -.SS "long serverrec::pingtime" +.SS "long \fBserverrec::pingtime\fP" .PP -last ping response (ms)Definition at line 28 of file servers.h. +last ping response (ms) Definition at line 39 of file servers.h. .PP Referenced by serverrec(). -.SS "bool serverrec::sync_soon" +.SS "bool \fBserverrec::sync_soon\fP" .PP -Definition at line 52 of file servers.h. +Definition at line 67 of file servers.h. .PP Referenced by serverrec(). -.SS "long serverrec::usercount" +.SS "long \fBserverrec::usercount\fP" .PP -non-invisible users on serverDefinition at line 34 of file servers.h. +non-invisible users on server Definition at line 45 of file servers.h. .PP Referenced by serverrec(). -.SS "long serverrec::usercount_i" +.SS "long \fBserverrec::usercount_i\fP" .PP -invisible users on serverDefinition at line 31 of file servers.h. +invisible users on server Definition at line 42 of file servers.h. .PP Referenced by serverrec(). -.SS "long serverrec::version" +.SS "long \fBserverrec::version\fP" .PP -ircd versionDefinition at line 43 of file servers.h. +ircd version Definition at line 54 of file servers.h. .PP Referenced by serverrec(). |