Guest User

Untitled

a guest
Oct 21st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. if($data->channel == '#s4league') {
  2.                     $list = array('Ardelis','Charmant','CherryLou','Illu','Nessah','ZeroZaku','Kikiel','shorty','sh0rty','xKEIx','WolfenAxel');
  3.                 }
  4.                 elseif($data->channel == '#loco') {
  5.                     $list = array('Primula','Cestrum','Aquilux','Majadon','Winterhokkaido','Mountie','rober17','ViCeN','deedo06');
  6.                 }
  7.                 rsort($list);
  8.                 $first = true;
  9.                 foreach ($irc->channel[$data->channel]->users as $user) {
  10.                     foreach($list as $key => $value) {
  11.                         if(strtolower($value) == strtolower($user->nick) || preg_match('/'.strtolower($value).'/i',strtolower($user->nick)) > 0) {
  12.                             if($first) {
  13.                                 $online .= $value;
  14.                                 $first = false;
  15.                             }
  16.                             else {
  17.                                 $online .= ' '.$value;
  18.                             }
  19.                         }
  20.                     }
  21.                 }
Add Comment
Please, Sign In to add comment