commit - 8f5cbe51a79c786be30ebc93466988cf67a825e1
commit + 08d49a8fa02ef11b22d611d11c595812ce207ac8
blob - c5f65fe8051f9dbca27c2f26f073c731112ced08
blob + 06b88bae1db7404693df44b298a897b8c31c55cc
--- src/ngircd/channel.c
+++ src/ngircd/channel.c
if (Client_Conn(From) > NONE)
Conn_UpdateIdle(Client_Conn(From));
- return IRC_WriteStrChannelPrefix(Client, Chan, From, true,
- "%s %s :%s", Command, Channel_Name(Chan), Text);
+ IRC_WriteStrChannelPrefix(Client, Chan, From, true, "%s %s :%s",
+ Command, Channel_Name(Chan), Text);
+ return CONNECTED;
}
blob - ea9b9a02836a0c8f5c617c6cf6f5b2f7c2a5ff79
blob + f4d4361a73458495e0d8e0f706f1e58561775f19
--- src/ngircd/irc-write.c
+++ src/ngircd/irc-write.c
static const char *Get_Prefix PARAMS((CLIENT *Target, CLIENT *Client));
static void cb_writeStrServersPrefixFlag PARAMS((CLIENT *Client,
CLIENT *Prefix, void *Buffer));
-static bool Send_Marked_Connections PARAMS((CLIENT *Prefix, const char *Buffer));
+static void Send_Marked_Connections PARAMS((CLIENT *Prefix, const char *Buffer));
#ifdef PROTOTYPES
#ifdef PROTOTYPES
-GLOBAL bool
+GLOBAL void
IRC_WriteStrChannel(CLIENT *Client, CHANNEL *Chan, bool Remote,
const char *Format, ...)
#else
-GLOBAL bool
+GLOBAL void
IRC_WriteStrChannel(Client, Chan, Remote, Format, va_alist)
CLIENT *Client;
CHANNEL *Chan;
vsnprintf( buffer, 1000, Format, ap );
va_end( ap );
- return IRC_WriteStrChannelPrefix( Client, Chan, Client_ThisServer( ), Remote, "%s", buffer );
+ IRC_WriteStrChannelPrefix(Client, Chan, Client_ThisServer(),
+ Remote, "%s", buffer );
} /* IRC_WriteStrChannel */
-
/**
* send message to all clients in the same channel, but only send message
* once per remote server.
*/
#ifdef PROTOTYPES
-GLOBAL bool
+GLOBAL void
IRC_WriteStrChannelPrefix(CLIENT *Client, CHANNEL *Chan, CLIENT *Prefix,
bool Remote, const char *Format, ...)
#else
-GLOBAL bool
+GLOBAL void
IRC_WriteStrChannelPrefix(Client, Chan, Prefix, Remote, Format, va_alist)
CLIENT *Client;
CHANNEL *Chan;
}
cl2chan = Channel_NextMember( Chan, cl2chan );
}
- return Send_Marked_Connections(Prefix, buffer);
+ Send_Marked_Connections(Prefix, buffer);
} /* IRC_WriteStrChannelPrefix */
* only send message once per remote server.
*/
#ifdef PROTOTYPES
-GLOBAL bool
+GLOBAL void
IRC_WriteStrRelatedPrefix(CLIENT *Client, CLIENT *Prefix, bool Remote,
const char *Format, ...)
#else
-GLOBAL bool
+GLOBAL void
IRC_WriteStrRelatedPrefix(Client, Prefix, Remote, Format, va_alist)
CLIENT *Client;
CLIENT *Prefix;
chan_cl2chan = Channel_NextChannelOf( Client, chan_cl2chan );
}
- return Send_Marked_Connections(Prefix, buffer);
+ Send_Marked_Connections(Prefix, buffer);
} /* IRC_WriteStrRelatedPrefix */
} /* cb_writeStrServersPrefixFlag */
-static bool
+static void
Send_Marked_Connections(CLIENT *Prefix, const char *Buffer)
{
CONN_ID conn;
- bool ok = CONNECTED;
assert(Prefix != NULL);
assert(Buffer != NULL);
conn = Conn_First();
while (conn != NONE) {
if (Conn_Flag(conn) == SEND_TO_SERVER)
- ok = Conn_WriteStr(conn, ":%s %s",
- Client_ID(Prefix), Buffer);
+ Conn_WriteStr(conn, ":%s %s",
+ Client_ID(Prefix), Buffer);
else if (Conn_Flag(conn) == SEND_TO_USER)
- ok = Conn_WriteStr(conn, ":%s %s",
- Client_MaskCloaked(Prefix), Buffer);
- if (!ok)
- break;
+ Conn_WriteStr(conn, ":%s %s",
+ Client_MaskCloaked(Prefix), Buffer);
conn = Conn_Next( conn );
}
- return ok;
}
blob - dc8dec209157a64c9ad6cdcf625291ec17fbaca9
blob + ddfe2f0e1d5e172a543269051e91decd38873257
--- src/ngircd/irc-write.h
+++ src/ngircd/irc-write.h
/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2008 Alexander Barton (alex@barton.de)
+ * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
GLOBAL bool IRC_WriteStrClientPrefix PARAMS((CLIENT *Client, CLIENT *Prefix,
const char *Format, ...));
-GLOBAL bool IRC_WriteStrChannel PARAMS((CLIENT *Client, CHANNEL *Chan,
+GLOBAL void IRC_WriteStrChannel PARAMS((CLIENT *Client, CHANNEL *Chan,
bool Remote, const char *Format, ...));
-GLOBAL bool IRC_WriteStrChannelPrefix PARAMS((CLIENT *Client, CHANNEL *Chan,
+GLOBAL void IRC_WriteStrChannelPrefix PARAMS((CLIENT *Client, CHANNEL *Chan,
CLIENT *Prefix, bool Remote, const char *Format, ...));
GLOBAL void IRC_WriteStrServers PARAMS((CLIENT *ExceptOf,
CLIENT *Prefix, char Flag,
void (*callback)(CLIENT *, CLIENT *, void *), void *cb_data));
-GLOBAL bool IRC_WriteStrRelatedPrefix PARAMS((CLIENT *Client, CLIENT *Prefix,
+GLOBAL void IRC_WriteStrRelatedPrefix PARAMS((CLIENT *Client, CLIENT *Prefix,
bool Remote, const char *Format, ...));
GLOBAL void IRC_SendWallops PARAMS((CLIENT *Client, CLIENT *From,