mIRC Home    About    Download    Register    News    Help

Print Thread
#201850 07/07/08 11:33 AM
Joined: Mar 2007
Posts: 139
S
Solo1 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
Greetings.
Can anyone recommend an efficient way to flush the color list. I have tried everything from /cnick -r * to all different types of while loops like //var %i = 1 | while ($cnick(%i)) { cnick -r $v1 | inc %i } etc. And it never completley clears the list. There are always some user names remaining. Can anyone assist me please?

Kind regards.

Solo1 #201853 07/07/08 12:23 PM
Joined: Aug 2003
Posts: 144
M
Vogon poet
Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Hi.

Off course, that code is a little bugged.
For example:.
You have 10 nicks. names Nick1, Nick2, Nick3, ..., Nick9, Nick10
Using you while code it will be something like this:.

var %i 1 --> set the var %i to 1
while ( $cnick(1) ) { --> while true it will return Nick1
cnick -r Nick1 --> It will delete the Nick1 from color list
inc %i --> increase the var %i to 2
------Now it will return to check the while again ----
while ( $cnick(3) ) { --> while true it will return Nick3
cnick -r Nick3 --> It will delete the Nick3 from color list
inc %i --> increase the var %i to 3
-----Has you can see at this time he have return the Nick3 instead the Nick2, because you are trying to return the 2º nick from the actual list. ( don´t forget that at this time you have only 9 nicks not 10 like in the beginning ), he have jumped the Nick2...

Has you can see the next nick that will be remove it will be the 3º nick of list, in this case it will be the Nick5 ( if i am not mistake ).

I think with this little explanation you can figured out what you can do...

If you need any more help jut ask.

Good luck

Last edited by Miguel_A; 07/07/08 12:24 PM.
Joined: Mar 2007
Posts: 139
S
Solo1 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
Hi
Thanks for your reply. So am i right in saying that the below would work

//var %i = $cnick(0) | while (%i) { cnick -r $cnick(%i) | dec %i }

Do you have any better suggestions?

Solo1 #201855 07/07/08 01:53 PM
Joined: Aug 2003
Posts: 144
M
Vogon poet
Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
hi.

yup it´s a good one.

good luck

Solo1 #201856 07/07/08 01:56 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
/cnick -r * should work. If it doesn't, I'd consider it a bug (or a feature suggestion). Is there anything in common with the items that aren't removed with that command?

Have you tried:

/cnick -r *@*
/cnick -r *!*@*

-genius_at_work

Joined: Aug 2003
Posts: 144
M
Vogon poet
Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Hi.

Well i have consider that first when i made that explanation...
If it´s a bug that i don´t know...
If it´s not a bug, yes it´s a good feature suggestion to add to future´s versions off mIRC.


Joined: Mar 2007
Posts: 139
S
Solo1 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
Hi
None of those options work. I had tried everything as i mentioned in my original post. Nevertheless i re-tried your suggestions alas to no avail frown

I wont bother suggesting it as it will be ignored. I have not seen one reply to a feature suggestion from any of the mIRC team. The only thing that gets any attention here are the bug reports.

Thank you for your suggestions.

Solo1 #201979 11/07/08 03:39 AM
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
How would we get all of these added features (unicode being probably the biggest recently) if the features weren't getting attention?

Just because you don't see an answer from Khaled don't mean the suggestion wasn't read by him and added to his "to do" list.


I refuse to engage in a battle of wits with an unarmed person. wink

Link Copied to Clipboard