Impersonating staff on RC just got a lot easier.
PHP Code:
function secho(msg) {
for (temp.rc: findRCs()) {
temp.rc.sendtorc(msg);
}
}
function findRCs() {
for (a: allplayers) {
if (a.level == NULL) temp.rcs.add(a);
}
return temp.rcs;
}
Edit: Private debugging echo
PHP Code:
function echo(msg) {
findRC("yourAcct").sendtorc(msg);
}
function findRC(acct) {
for (a: allplayers) if (a.account == acct) return a;
return findplayer(acct);
}