All pastes #428471 Raw Edit

Mortal

public php v1 · immutable
·published 2007-04-07 16:16 UTC
rendered paste body
    // Major hax ahead    if (isset($isalone)) unset($isalone);    do {      do {        logmsg('Checking if we\'re alone in channel '.$recipient.'. '.implode(' ', array_keys($GLOBALS['channels'][$recipient])), DEBUG_VERBOSE);        foreach (array_keys($GLOBALS['channels'][$recipient]) as $useeer) {          if ($useeer{0} === ' ' or $useeer === $from or $useeer === $GLOBALS['nick'] or $useeer === 'Q' or $useeer === 'ChanServ') {            logmsg($useeer.' is us or the sender, so we\'re alone.', DEBUG_VERBOSE);            continue;          }          logmsg($useeer.' is neither us nor the sender, so we\'re not alone.', DEBUG_VERBOSE);          break 2;        }        break 2;      } while (0);      $isalone = false; // this is only triggered if the break 2; in the foreach triggers - i.e. if a user in the cur channel is found who isn't the from or us.    } while (0);