mIRC Home    About    Download    Register    News    Help

Print Thread
#141083 04/02/06 01:32 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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.


Gone.
#141084 04/02/06 03:10 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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,019
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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.


Gone.
Joined: Jul 2014
Posts: 332
Pan-dimensional mouse
Online
Pan-dimensional mouse
Joined: Jul 2014
Posts: 332
I would like to see this feature added as well.


TECO
irc.PTirc.org (Co-Admin)

Link Copied to Clipboard