As I had mentioned, searching within the favorites list for a specific string is not reliable because of how the favorites info is saved. It seems like you want to create a list of channels attached to a specific network.

The favorites list is saved as comma delimited, where the network is the 4th token. However, if that channel exists at more than 1 network, the 4th token would change from being like ,redispana, to being ,"redispana,dalnet, quakenet", etc. It is also possible for the 2nd token to be a string containing a comma inside doublequotes, so $gettok(string,4,44) would no longer be looking at the network names.

If all you care about is entries in the favorites list which contain 'redispana' somewhere within the entire list of information, you can edit the following to change *swiftirc* to *redispana*

The -s create debugging information so you can see the entire line existing inside mirc.ini, so you can reduce the clutter by removing the -s switch. You can have the following commands be on separate lines within your alias if you also make sure that the | symbol is deleted so that it does not begin or end any of the lines

//hfree -w delete_me | hload -im1 delete_me $qt($mircini) chanfolder | var -s %wildcard *swift* , %i $hfind(delete_me,%wildcard,0,w).data | while (%i) { var -s %item $hfind(delete_me,%wildcard,%i,w).data , %data $hget(delete_me,%item) | echo -a channel: $gettok(%data,1,44) | dec %i }