perform

Back to Module Development

Page: 1  
From User Message Body
g2x3k
Post #1077
Member
Date: 11:22 am, Jan 10 2011
Posts: 6


i made my own perform now so just thought id share is usefull for on.connect oper reg and nickserv reg

irc.php
Code

<?
... line 1359

case 376: 
  // motd end * perform
  if (file_exists("$this->nick.perform.x")) {
    include("$this->nick.perform.x");     
  }
break;

...
?>

make a file called NICK.perform.x in main bot dir
nick.perform.x (if bot nick == lamer its perform = lamer.perform.x)
Code

<?
// nick.perform.x for php-irc by g2x3k
//
// this file get excuted from the irc class on RAW 376/422
// - so to send raw use: $this->sendRaw("");
//
// use for oper status / nickserv reg :)=
$this->sendRaw("oper user pass");
$this->privMsg("nickserv", "register password my@mail.com ");
//$this->privMsg("nickserv", "identify password");

// only use register once then comment out and uncomment ident :)
?>


   

Back to Module Development