Recent Posts
None | 8 sec ago
None | 13 sec ago
None | 19 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
Java | 2 min ago
C# | 2 min ago
None | 3 min ago
C# | 4 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By Anonymous on the 10th of Feb 2010 12:56:30 AM
Download |
Raw |
Embed |
Report
function systemHelper(&$irc, &$data) {
//explode their text to pull apart the topic and target.
$topic = explode(":",$data->message);
$nickname = explode(" ", $data->message);
$irc->message(SMARTIRC_TYPE_CHANNEL, '#help', "The correct syntax is !help <user>:<topic>");
}
else {
$getHelp = systemHelp($topic[1]);
if($getHelp == "ERROR") {
$irc->message(SMARTIRC_TYPE_CHANNEL, '#help', $topic[1]." is not a valid help string");
}
foreach ($irc->channel['#help']->users as $key => $value) {
if(stristr($nickname[1
],$key)===TRUE) {
$foundNick = TRUE;
}
else {
$foundNick = FALSE;
}
}
if($foundNick == TRUE) {
$irc->message(SMARTIRC_TYPE_CHANNEL, '#help', $nickname[1].": ".$getHelp);
}
else {
$irc->message(SMARTIRC_TYPE_CHANNEL, '#help', $getHelp);
}
}
}
Submit a correction or amendment below.
Make A New Post