mIRC Homepage
Posted By: MeToo Easy on text question - 18/05/06 06:33 PM
In remotes I have:

on 1:Text:!quote:#:/msg $chan $read(quotet.txt)

It works sometimes and sometimes doesn't. How come? Does the length of the quotes make a diffference or the timing somehow make a difference?

Any help would be apprecitated.
Posted By: vexed Re: Easy on text question - 18/05/06 06:45 PM
On *:text:!Quote*:#:{
Posted By: Riamus2 Re: Easy on text question - 18/05/06 09:06 PM
The * isn't necessary as long as the command is only !Quote and not !Quotes or !Quote 10.

The problem is most likely a matter of a quote line being too long. You can only send lines on IRC of a certain length (the length is determined by the server/network you are on).

A good workaround is to read the lines into a binary variable and then display something like 300 characters per msg and loop until finished. You can make this work at the 300 character mark, or make it split at words instead...depending how in depth you want to get with the script.

I actually wrote a script to handle that for a friend, but I don't have mIRC here to test with right now, so I won't try writing it up as I'll probably have some code messed up (I don't usually need to use binary variables in my scripts).
© mIRC Discussion Forums