use (undernet server is the example)
if (undernet isin $server) {
commands
}