mIRC Home    About    Download    Register    News    Help

Print Thread
#193682 23/01/08 11:33 PM
Joined: Jan 2008
Posts: 3
N
noclew Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
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

noclew #193688 24/01/08 12:26 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
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. wink


Invision Support
#Invision on irc.irchighway.net
noclew #193691 24/01/08 02:00 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
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"
argv0 #193692 24/01/08 02:05 AM
Joined: Jan 2008
Posts: 3
N
noclew Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Jan 2008
Posts: 3
Thanks for the replies smile

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.
noclew #193693 24/01/08 02:18 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
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.

Code:

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
N
noclew Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Jan 2008
Posts: 3
Thanks smile

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?

noclew #193841 26/01/08 05:38 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
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
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Originally Posted By: genius_at_work


Code:

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
G
Hoopy frood
Offline
Hoopy frood
G
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
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Ah heh k, maximum limit text.


Link Copied to Clipboard