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...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Anonymous on the 10th of Feb 2010 12:56:30 AM Download | Raw | Embed | Report
  1.         function systemHelper(&$irc, &$data) {
  2.                 //explode their text to pull apart the topic and target.
  3.                 $topic = explode(":",$data->message);
  4.                 $nickname = explode(" ", $data->message);
  5.                 if(!isset($topic[1])) {
  6.                         $irc->message(SMARTIRC_TYPE_CHANNEL, '#help', "The correct syntax is !help <user>:<topic>");
  7.                         }
  8.                 else {
  9.                         $getHelp = systemHelp($topic[1]);
  10.                         if($getHelp == "ERROR") {
  11.                                 $irc->message(SMARTIRC_TYPE_CHANNEL, '#help', $topic[1]." is not a valid help string");
  12.                                 }
  13.                         foreach ($irc->channel['#help']->users as $key => $value) {
  14.                                 print_r($key);
  15.                                 if(stristr($nickname[1],$key)===TRUE) {
  16.                                         $foundNick = TRUE;
  17.                                         }
  18.                                 else {
  19.                                         $foundNick =  FALSE;
  20.                                         }
  21.                                 }
  22.                         if($foundNick == TRUE) {
  23.                                 $irc->message(SMARTIRC_TYPE_CHANNEL, '#help', $nickname[1].": ".$getHelp);
  24.                                 }
  25.                         else {
  26.                                 $irc->message(SMARTIRC_TYPE_CHANNEL, '#help', $getHelp);
  27.                                 }
  28.                         }
  29.                 }
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: