|
From: Damien E. <da...@re...> - 2004-03-09 00:26:55
|
Lawrence Mitchell <we...@gm...> writes: > erc-current-network has never really done the right thing for > most domains. The regex approach just doesn't cut it. While > I'm assured that, in fact, this is being worked on elsewhere, > what do people think of the following. We basically just walk > subdomains trying to find matches in erc-networks, and, if that > fails, return 'unknown. From my testing it appears to be a lot > more robust than any current efforts we have. Why not just loop through all nets in erc-networks, and for each net, check if the the net matches erc-announced-server-name tail - ie, match erc-announced-server-name against (concat net "$") This approach would avoid avoid needless nested repetitions (think assoc) Cheers, -- Damien Elmes |