mIRC Home    About    Download    Register    News    Help

Print Thread
#141083 04/02/06 01:32 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
A few people (*wink* qwerty, sat, myself) and probably a lot of other people, think it would be convenient if $read's matching switches would be extended with W and R switches, which would perform the same function as they already do with $hfind, with the difference that it would be used on a file now rather than a hash table.

#141084 04/02/06 03:10 PM
Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
That sounds like a good feature to me. Much easier than looping..

while {
if ($regex(%text,/$read/)) ...
if ($read iswm %text) ...
}

-genius_at_work

#141085 04/02/06 03:27 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Apart from easier, it is a lot more efficient, since it would be like using the file handling commands or /filter (1 time disk access), whereas looping with $read means disk access for each $read call.

Joined: Jul 2014
Posts: 299
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2014
Posts: 299
I would like to see this feature added as well.


TECO
irc.PTirc.org (Co-Admin)

Link Copied to Clipboard