mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Sending large texts #220981 04/05/10 12:45 PM
Joined: May 2010
Posts: 5
G
Glowball Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: May 2010
Posts: 5
When sending messages that are longer than the server can handle, they're just cut off without the user knowing.
It would be easier if mIRC would behave like XChat on this behalf: automatically sending a second message to the channel/person with the rest.

If this is still unclear, here's an example (using a quote of Khaled himself smile ). 'Glowball' is on XChat, 'Glowball|7Beta' is on mIRC 7.02 Beta (obviously):

<Glowball|7Beta> Just to clarify: the main reason I implemented workarounds for Wine in the latest beta is that v7.x was crashing. My aim was to make mIRC runnable and usable under Wine, although I ended up implementing a number of workarounds for obvious issues, beyond the one particular issue that was causing mIRC to crash. Unfortunately I do not have the time to regularly test mIRC under Wine. As Wine developers would probably point out: it
<Glowball> Just to clarify: the main reason I implemented workarounds for Wine in the latest beta is that v7.x was crashing. My aim was to make mIRC runnable and usable under Wine, although I ended up implementing a number of workarounds for obvious issues, beyond the one particular issue that was causing mIRC to crash. Unfortunately I do not have the time to regularly test mIRC under Wine. As Wine develope
<Glowball> rs would probably point out: it should be Wine that is improved to work as closely as possible to Windows. Applications implementing workarounds is somewhat detrimental to the Wine project.

Re: Sending large texts [Re: Glowball] #220997 04/05/10 10:25 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
There are "cut scripts" available to handle that, including one I wrote for someone. Also, keep in mind that chatting isn't meant to have people writing "books" to each other, but just typing relatively short messages.

Even so, I do think that having mIRC split long lines into multiple messages would probably be a good thing for a lot of people. It would definitely help with pasting.


Invision Support
#Invision on irc.irchighway.net
Re: Sending large texts [Re: Riamus2] #221017 05/05/10 12:59 PM
Joined: Dec 2002
Posts: 4,521
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,521
mIRC already has a bit of code that does this, however I decided not to enable it because in most of the tests I performed, eg. sending a long message of three full lines or more, I was disconnected from the server, and occasionally banned for flooding.

Obviously this will depend on the IRC server's policy, and whether the user has the Flood Protection option enabled in mIRC (which will delay the sending of each line), and so on.

However my feeling is that it will result in more disconnections, and more temporary bans due to flooding, of non-techie users who will be unaware of what has happened.

Re: Sending large texts [Re: Khaled] #221025 05/05/10 05:35 PM
Joined: Jan 2009
Posts: 116
Knoeki Offline
Vogon poet
Offline
Vogon poet
Joined: Jan 2009
Posts: 116
Would it at least be possible to echo something that says the line was cut off after x characters or so? At least that doesn't leave people in the dark about wether or not everything got through... of course, it should be possible to disable this...


http://zowb.net

/server -m irc.p2p-network.net -j #zomgwtfbbq
(ssl on port 6697 and 7000)
Re: Sending large texts [Re: Knoeki] #221027 05/05/10 05:53 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
It would actually be easy to put that in yourself. The max number of characters is in one of the RAWs, but I'm not sure which one right now. It would just be a matter of putting a check in that RAW that checks $calc($len($1-) + $len($me) + $len($chan)) and if it's > the RAW value for max length, it will echo the warning.


Invision Support
#Invision on irc.irchighway.net
Re: Sending large texts [Re: Riamus2] #221028 05/05/10 05:54 PM
Joined: Jan 2009
Posts: 116
Knoeki Offline
Vogon poet
Offline
Vogon poet
Joined: Jan 2009
Posts: 116
Sure, it would be easy for people who are scripting, but most of us are already aware that this happens. The point is mostly those newbies that have no idea what's going on that might want something like this. :_)


http://zowb.net

/server -m irc.p2p-network.net -j #zomgwtfbbq
(ssl on port 6697 and 7000)
Re: Sending large texts [Re: Knoeki] #221030 05/05/10 05:57 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
That's why mIRC beeps if the line is too long. smile I don't think it checks the RAW to get the actual maximum length, but it's set to a value that should always be under the maximum length. So you should always get beeps before you reach the maximum line length for a network. Yes, a message would be easier to understand, but at the same time, the beeps warn you before you send so you can split your line before it gets chopped off rather than after.


Invision Support
#Invision on irc.irchighway.net
Re: Sending large texts [Re: Khaled] #221040 05/05/10 11:10 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Could mIRC not just enable this if flood protection has been enabled? Otherwise a notice that the line was cut off (in the status) would be helpful, specifically to the non-tech users who don't get why the line was cut off.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Sending large texts [Re: argv0] #221063 06/05/10 11:44 AM
Joined: Dec 2002
Posts: 4,521
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,521
mIRC could warn users that their message -might- be cut off any time they send a message over 400 characters, however it is not possible for mIRC to know in advance whether the message will be cut off or not. The maximum message length is variable since it depends on a number of factors, such as the length of your nickname!userid@address (as seen by other users) and the target nick/channel name, both of which take away from the servers 512 characters limit per line (at least, that is what I am assuming).

I will add a "Split long outgoing messages" option to the Messages dailog in the next version and we can see how it works out. This option will split all outgoing PRIVMSG and NOTICE messages that are longer than 400 characters.

Re: Sending large texts [Re: Khaled] #221069 06/05/10 01:55 PM
Joined: Feb 2006
Posts: 32
Daveoh Offline
Ameglian cow
Offline
Ameglian cow
Joined: Feb 2006
Posts: 32
Will it split by word or by character? I don't think cutt-
ing by characters is right, and it should definitely cut
the entire word which overlaps the 400 character limit
and place it on the next line.
[/example]

Re: Sending large texts [Re: Daveoh] #221072 06/05/10 02:15 PM
Joined: Dec 2002
Posts: 4,521
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,521
It will split on word boundaries (only up to a few characters however, otherwise you could end up with one word per line), pass control codes across split lines, and handle utf-8 encodings.

Re: Sending large texts [Re: Khaled] #221228 11/05/10 07:37 PM
Joined: May 2010
Posts: 4
I
IrinaWylder Offline
Self-satisified door
Offline
Self-satisified door
I
Joined: May 2010
Posts: 4
Is there a function, or will you consider adding an option for one, that allows the command-line bar to expand down/upward when exceeding the width, so that you can easier see everything you've written instead of being forced to scroll back with the arrow-keys?

I (very) often write very long posts and everyone else on my network do too, so this function would not go to waste, if at all possible.

Last edited by IrinaWylder; 11/05/10 07:46 PM.
Re: Sending large texts [Re: IrinaWylder] #221229 11/05/10 07:55 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
This feature has been present since v6.33:

mIRC Options > Display > Options > Editbox lines: Automatic


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: Sending large texts [Re: starbucks_mafia] #221230 11/05/10 08:20 PM
Joined: May 2010
Posts: 4
I
IrinaWylder Offline
Self-satisified door
Offline
Self-satisified door
I
Joined: May 2010
Posts: 4
Thank you so much! I cannot believe I missed that, but I'm so happy that you could tell me where to find it! smile

Re: Sending large texts [Re: Khaled] #221371 15/05/10 01:07 AM
Joined: Dec 2002
Posts: 339
D
Doomstars Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
400 characters seems reasonable. However, what if we let it be user-defined?

CHECKBOX Split messages longer than [number field] characters up.
CHECKBOX Split messages up near [character field].
(Character field would actually be a number. 32 would indicate it would fall back in the sentence to a space and split it there.)
(Checkbox means it can be enabled or disabled. So, it wouldn't split it up near a specific character if it is unchecked.)
(I suggest keeping that space, or other character, in the previous line. A space can be safely removed, but if someone chooses a period or something else, it would look weird removed.)
Parse lines every [seconds field].
(3 seconds means it performs a 3 second delay before sending the next line. Control break would halt all of these. I would suggest limiting it from 0 seconds to 60 seconds.)

Re: Sending large texts [Re: Doomstars] #221372 15/05/10 02:02 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Complicated much?


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Sending large texts [Re: argv0] #221398 16/05/10 09:26 AM
Joined: Dec 2002
Posts: 339
D
Doomstars Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
Not really. How often do we end up seeing a person's message being cut off and we have to tell them where?

Re: Sending large texts [Re: Doomstars] #221401 16/05/10 12:13 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Rarely. smile

Usually only from people who are new to mIRC/IRC. There's no need for all of those settings. A simple setting dialog that has enable/disable and perhaps a number of characters is plenty.


Invision Support
#Invision on irc.irchighway.net
Re: Sending large texts [Re: Riamus2] #221509 22/05/10 07:08 PM
Joined: Dec 2002
Posts: 339
D
Doomstars Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Dec 2002
Posts: 339
A number of characters would be simple, but wouldn't it look odd to have it cut off mid-word?

Re: Sending large texts [Re: Doomstars] #221524 23/05/10 02:14 AM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
# of characters would be maximum number before splitting. mIRC will (and does now that it's included) cut lines at spaces whenever possible. Basically, if you set 400 characters and the 400th character was at the "x" in "maximum", it would split the line at the space before "maximum".

In any case, it works fine now, but I've disabled it because it was cutting stuff where I didn't want it to (not enough character) causing scripts I had that already split long lines to look wrong.


Invision Support
#Invision on irc.irchighway.net
Page 1 of 2 1 2