Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($data->channel == '#s4league') {
- $list = array('Ardelis','Charmant','CherryLou','Illu','Nessah','ZeroZaku','Kikiel','shorty','sh0rty','xKEIx','WolfenAxel');
- }
- elseif($data->channel == '#loco') {
- $list = array('Primula','Cestrum','Aquilux','Majadon','Winterhokkaido','Mountie','rober17','ViCeN','deedo06');
- }
- rsort($list);
- $first = true;
- foreach ($irc->channel[$data->channel]->users as $user) {
- foreach($list as $key => $value) {
- if(strtolower($value) == strtolower($user->nick) || preg_match('/'.strtolower($value).'/i',strtolower($user->nick)) > 0) {
- if($first) {
- $online .= $value;
- $first = false;
- }
- else {
- $online .= ' '.$value;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment