* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* Please read the file COPYING, README and AUTHORS for more information.
- *
- * Sending IRC commands over the network
*/
-
#include "portab.h"
+/**
+ * @file
+ * Sending IRC commands over the network
+ */
+
#include "imp.h"
#include <assert.h>
#ifdef PROTOTYPES
vsnprintf( buffer, 1000, Format, ap );
va_end( ap );
- return Conn_WriteStr( Client_Conn( Client_NextHop( Client )), ":%s %s", Get_Prefix( Client_NextHop( Client ), Prefix ), buffer );
+ return Conn_WriteStr(Client_Conn(Client_NextHop(Client)), ":%s %s",
+ Get_Prefix(Client_NextHop(Client), Prefix), buffer);
} /* IRC_WriteStrClientPrefix */
static const char *
-Get_Prefix( CLIENT *Target, CLIENT *Client )
+Get_Prefix(CLIENT *Target, CLIENT *Client)
{
- assert( Target != NULL );
- assert( Client != NULL );
+ assert (Target != NULL);
+ assert (Client != NULL);
- if( Client_Type( Target ) == CLIENT_SERVER ) return Client_ID( Client );
- else return Client_Mask( Client );
+ if (Client_Type(Target) == CLIENT_SERVER)
+ return Client_ID(Client);
+ else
+ return Client_MaskCloaked(Client);
} /* Get_Prefix */