mIRC Home    About    Download    Register    News    Help

Print Thread
#132831 14/10/05 12:16 PM
Joined: Oct 2005
Posts: 1
N
Mostly harmless
OP Offline
Mostly harmless
N
Joined: Oct 2005
Posts: 1
Hi all,

well i need a little (big) help for my mIRC Server ...

I've a server made in mIRC that is compatible with the OCX of MSN and i've got that error message in status window :

Code:
 * /sockwrite: 'ppr.%#Magia_do_Amor.*' queue would exceed 16384 bytes (line 342, aliases.txt) 


my problem is that i dont understand nothing on write and read sock's so im gonna paste you the code of alias who as the problem.

The Alias code is:

Code:
 alias sendtoroom { 
  if ($sock($2)) {
    var %a = $2
    var %b = sockwait. $+ $iif($gettok($2,3,46),$gettok($2,3,46),$gettok($2,2,46))
    sockrename %a %b
    if ($sock(ppr. $+ $1 $+ .*,0) >= 1) { sockwrite -tn ppr. $+ $chr(37) $+ $chr(35) $+ $right($1,-2) $+ .* : $+ $iif(*!*@* iswm $2,$2,$gna($2)) $3- }
    sockrename %b %a
  }
  else {
    if ($sock(ppr. $+ $1 $+ .*,0) >= 1) { sockwrite -tn ppr. $+ $1 $+ .* : $+ $iif(*!*@* iswm $2,$2,$gna($2)) $3- }
  }
} 


and the line 342 of aliases.txt is:

Code:
  if ($sock(ppr. $+ $1 $+ .*,0) >= 1) { sockwrite -tn ppr. $+ $chr(37) $+ $chr(35) $+ $right($1,-2) $+ .* : $+ $iif(*!*@* iswm $2,$2,$gna($2)) $3- }


so ...

I dont see nothing that speack on "queue would exceed 16384 bytes" confused

Can somebody who understand of mIRC Scripting help me with that please?

Thanks and sorry for my english
Bye all

Neo

Moved to Scripts & Popups. Threads usually answered quicker when posted in the right forum

Last edited by Mentality; 14/10/05 12:48 PM.
#132832 14/10/05 03:36 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
I can't imagine you have made this script, if you don't have basic knowledge of sockets yet.

This comes straight from the help file (/help sockets):

Quote:
Note: If you try to /sockwrite while there is still info queued in the send buffer, your new info will just be added to the end of the queue up to a maximum of 16384 bytes. Any attempt to queue more than that will result in an error message, so you should check how much info is currently queued by using $sock().sq (send queue) before trying to queue info on a socket.


Gone.
#132833 14/10/05 03:41 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I don't think he meant that he wrote it. smile

I'd try to offer a suggestion of how to rewrite that, but I'm not really sure as I've only used sockets for downloading web site data.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard