(15 Mar 14, 11:37PM)RandumKiwi Wrote:Quote:SERVERTITLES = [ gibbed.me Mousikos ]
SERVERPASSES = [ PASS1 PASS2 ]
sudo = [ loop i (listlen $SERVERTITLES) [ if (strstr (curserver 6) (at $SERVERTITLES $i)) [ setadmin 1 (at $SERVERPASSES $i); break ] [ setadmin 0 ] ] ]
You realise, the problem with this script, is that it doesn't do a per-port comparison - so if different ported servers, with different passwords, exist on the same named servername, this won't work.
Yes. However, |AoX| has a billion servers with different IPs and ports so I wrote it this way to prevent having a huge list of servers and ports