summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
Diffstat (limited to 'blabouncer.c')
-rw-r--r--blabouncer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/blabouncer.c b/blabouncer.c
index a84266c..8648a49 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -797,11 +797,11 @@ void dochat(int *serversockfd, int *clientsockfd, struct settings *settings) {
// TODO - Handle the "find a free element" loop not finding a free element
debugprint(DEBUG_FULL, "bouncer-client: new connection from %s on socket %d\n",
- clients[arrindex(clients, i)].remoteip, newfd);
+ clients[arrindex(clients, newfd)].remoteip, newfd);
// Alert other clients about the new connection
char alertmsg[MAXDATASIZE];
if (!snprintf(alertmsg, MAXDATASIZE, "NOTICE %s :blabouncer: new client connected from %s.", ircdstate.ircnick,
- clients[arrindex(clients, i)].remoteip)) {
+ clients[arrindex(clients, newfd)].remoteip)) {
fprintf(stderr, "Error while preparing new client connection NOTICE!\n");
debugprint(DEBUG_CRIT, "Error while preparing new client connection NOTICE!\n");
alertmsg[0] = '\0';