X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/481912374afc9d2db7f0c20d5a09805c915660de..ff0482a9cb989d23082d0a1ed53c5faa463a8c2f:/src/client.c diff --git a/src/client.c b/src/client.c index 7aa5b94..47ba0a4 100644 --- a/src/client.c +++ b/src/client.c @@ -1105,7 +1105,7 @@ exit_aborted_clients(void *unused) * */ void -dead_link(struct Client *client_p) +dead_link(struct Client *client_p, int sendqex) { struct abort_client *abt; @@ -1115,7 +1115,7 @@ dead_link(struct Client *client_p) abt = (struct abort_client *) rb_malloc(sizeof(struct abort_client)); - if(client_p->flags & FLAGS_SENDQEX) + if(sendqex) rb_strlcpy(abt->notice, "Max SendQ exceeded", sizeof(abt->notice)); else rb_snprintf(abt->notice, sizeof(abt->notice), "Write error: %s", strerror(errno));