mIRC Home    About    Download    Register    News    Help

Print Thread
#149413 18/05/06 06:33 PM
Joined: Sep 2005
Posts: 4
M
MeToo Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Sep 2005
Posts: 4
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.

#149414 18/05/06 06:45 PM
Joined: Feb 2006
Posts: 164
V
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
On *:text:!Quote*:#:{

#149415 18/05/06 09:06 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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).


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard