Development > Coding and development discussion

Help with prgoup !online

<< < (2/2)

Gwitz:
It worked, wewt. I have both modules working together perfectly. I commented everything out in the core online to do with pgroup and changed the variables in the other one to chatlist. Thanks already for the tips. Now im wondering if i can have the core online still display people in the pgroup to the online message thats called in guildchat.

jokerjr:
This is what I did to get an online for just people in the private group I just modified the Online.php file.

From this

--- Code: ---/*
      This gets called on a msg in the privgroup with the command
    */
    function pgmsg($name, $msg)
    {
      if ($this -> bot -> is_member($name))
      {
        $disponline = (($this -> bot -> guildbot) ? "both": "pgroup");
        $this -> bot -> send_pgroup($this -> online_msg($msg, $disponline));
      }
    }

--- End code ---

To this

--- Code: ---  /*
      This gets called on a msg in the privgroup with the command
    */
    function pgmsg($name, $msg)
    {
         $disponline = "pgroup";
         $this -> bot -> send_pgroup($this -> online_msg($msg, $disponline));
    }

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version