Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class pingalert {
- private $irc;
- private $pingcount = 0;
- public function __construct($parent)
- {
- $this->irc = $parent;
- }
- public function onPing()
- {
- $this->irc->say("#fayntic.test", "I got a ping");
- $this->pingcount++;
- }
- public function onpingcountCommand()
- {
- $this->irc->say("#fayntic.test", "I've had " . $this->pingcount . " pings so far");
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement