I've seriously updated the script since it was last posted. I noticed that it wasn't working for a clans that I got whitelisted into, so I ended up rewriting a bit while I was at it. In addition to fixing the bug I added a new feature.
Now it will automatically search to see if you entered a clans initials. That means you can enter
TCK for The Cereal Killers or
HOD for The Hogs of Destiny and it will know what you mean. The regex should work for all clan names, so anything on your whitelist can be accessed by typing only part of the name, or the clan's initials.
Code:
[COLOR="Olive"]> clanhop farewell[/COLOR]
[COLOR="#002080"]You are currently whitelisted by 11 clans[/COLOR]
Matching clan found: Farewell Transmission
[COLOR="#008000"]Welcome to your new clan, Farewell Transmission![/COLOR]
[COLOR="#808000"]> clanhop hcn[/COLOR]
[COLOR="#002080"]You are currently whitelisted by 11 clans[/COLOR]
Matching clan found: Hardcore Nation
[COLOR="#008000"]Welcome to your new clan, Hardcore Nation![/COLOR]
[COLOR="#808000"]> clanhop hardcore[/COLOR]
[COLOR="#002080"]You are currently whitelisted by 11 clans[/COLOR]
Matching clan found: Hardcore Nation
Matching clan found: Hardcore State
[COLOR="Red"]Multiple matches found! Making a guess as to the most precise match.[/COLOR]
[COLOR="#002080"]Attempting hop to clan: Hardcore State[/COLOR]
[COLOR="Green"]Welcome to your new clan, Hardcore State.[/COLOR]
[COLOR="Olive"]> clanhop ft[/COLOR]
[COLOR="#002080"]You are currently whitelisted by 11 clans[/COLOR]
Matching clan found: Farewell Transmission
[COLOR="Green"]Welcome to your new clan, Farewell Transmission![/COLOR]
I'm really very fond of the ability to match to any clan's initials. Incidentally, if there is no match at all, it will tell you the names of
every clan on your whitelist so that you can figure out the problem.