PwnTannerCode
public php v1 · immutable<?phpif ($data->message == 'myproperties') { $own = array(); $count = 0; foreach ($vars['location'] as $location) { if ($location['owner'] == strtolower($data->nick)) { $own[] = $location['name']; $count++; } } $message = strtolower($data->nick) . ': You own ' . $count . ' properties'; if ($found) { $message .= ': ' . implode(', ', $own); } $message .= '.'; $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, $message);}?>