Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / send.c
index 96bd12b3b1d5246b86068417d916aaec1bc5b13b..95d35bbba958cfdfe485e754dd0f5cfeccb54b18 100644 (file)
@@ -148,9 +148,8 @@ void send_queued(struct Client *to)
 
   while (MsgQLength(&to->sendQ) > 0) {
     unsigned int len;
-    const char* msg = msgq_map(&to->sendQ, &len);
 
-    if ((len = deliver_it(to, msg, len))) {
+    if ((len = deliver_it(to, &to->sendQ))) {
       msgq_delete(&to->sendQ, len);
       to->lastsq = MsgQLength(&to->sendQ) / 1024;
       if (IsBlocked(to))