|
Joined: Jan 2008
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2008
Posts: 3 |
When typing a long sentence in channel, it always cuts off half way through .. only half of it shows in the room. Does anyone know why or what settings I need to change to fix this? I checked the flood options in mIRC but that doesn't seem to be it.
Thanks
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
mIRC has a limit of around 850 characters (it varies based on where you're sending the text -- length of channel name or nick name in the case of query, for example). The only way around that is to use what's called a "Cut Script" to automatically cut long lines into shorter ones. Or just don't type such long lines.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
Joined: Oct 2003
Posts: 3,918 |
In addition to mIRC internal string limit, most servers have *arbitrary* line limits that are much lower, typically ~400-500 characters per message. In that case, mIRC will print the whole line but it will be truncated by the server and you won't even know. That said, you really shouldn't be approaching that limit on one line-- and you can easily split them into two or more.
- argv[0] on EFnet #mIRC - "Life is a pointer to an integer without a cast"
|
|
|
|
Joined: Jan 2008
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2008
Posts: 3 |
Thanks for the replies What has me puzzled is that one person's post cuts off midway, yet another can make a longer post. Is there something in the individual script that can limit characters ... or could maybe the colours or any special charcters come into play somehow as well?
Last edited by noclew; 24/01/08 02:06 AM.
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,741 |
The limit of characters per message includes your nickname!ident@host.mask. So people with shorter nicknames, idents, and hostmasks will be able to send slightly more characters in their messages. Each person will be able so send a different number of characters. Also, 'characters' includes all letters, numbers, symbols, spaces, color/bold/etc codes. More color codes means fewer letters in your message. If you load this script into your remotes file, you will know exactly how many characters you can send per message.
on *:CONNECT:.msg $me $+(MLT-,$str(º,512))
on me:^*:NICK:.msg $newnick $+(MLT-,$str(º,512))
on me:^*:TEXT:MLT-º*:?:{ set $+(%,MCL.,$cid) $len($gettok($rawmsg,3-,32)) | haltdef }
on *:DISCONNECT:unset $+(%,MCL.,$cid)
alias maxchars $iif($isid,return,echo -a Max:) $calc($iif($($+(%,MCL.,$cid),2),$ifmatch,512) - $iif($1,$len($1) - 1,0))
You have to reconnect after loading the script. To display the limit, type this: /maxchars -genius_at_work
|
|
|
|
Joined: Jan 2008
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Jan 2008
Posts: 3 |
Thanks I used that and found it to be 440. After doing a test the sentence cut off after 220. So that means its the colour & bold and such thats taking up all the rest?
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,741 |
That is correct. Every character that you type counts towards the maximum, including bold, color, underline, etc control codes.
-genius_at_work
|
|
|
|
Joined: Jan 2004
Posts: 509
Fjord artisan
|
Fjord artisan
Joined: Jan 2004
Posts: 509 |
on *:CONNECT:.msg $me $+(MLT-,$str(º,512))
on me:^*:NICK:.msg $newnick $+(MLT-,$str(º,512))
on me:^*:TEXT:MLT-º*:?:{ set $+(%,MCL.,$cid) $len($gettok($rawmsg,3-,32)) | haltdef }
on *:DISCONNECT:unset $+(%,MCL.,$cid)
alias maxchars $iif($isid,return,echo -a Max:) $calc($iif($($+(%,MCL.,$cid),2),$ifmatch,512) - $iif($1,$len($1) - 1,0))
Now this is absolutely necessary. on me:^*:open:?:mlt-*:/halt What's MLT- stand for? I think for the on me nick, I'll add if ($len($newnick) != $len($nick)). -Neal.
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,741 |
I dunno.. use your imagination. I'm sure it meant something when I made this code, but I don't remember the significance now.
-genius_at_work
|
|
|
|
Joined: Jan 2004
Posts: 509
Fjord artisan
|
Fjord artisan
Joined: Jan 2004
Posts: 509 |
Ah heh k, maximum limit text.
|
|
|
|
|