L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 14, 2008, 10:37:16 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Feedback and Suggestions > Topic: irc online spam changes
Pages: [1]   Go Down
« previous next »
Print
Author Topic: irc online spam changes  (Read 212 times)
0 Members and 1 Guest are viewing this topic.
Parfet
Rookie
**
Offline Offline

Posts: 33


irc online spam changes
« on: August 03, 2007, 09:21:58 AM »

Not sure where to post this, but I had the thought, if one is relaying both org and/or private channel to IRC, why not have both channels' user lists on the !online list? Only displays channels being relayed (I hope)

function irc_online()
Code:
/*
* Gets called when someone does !online
*/
function irc_online(&$irc, &$data)
{
if ((strtolower($this->bot->settings->get("Irc", "Chat")) == "both") ||
(strtolower($this->bot->settings->get("Irc", "Chat")) == "gc")) {
$online = $this->bot->db->select("SELECT nickname FROM #___online WHERE botname = '".$this->bot->botname
."' AND status_gc = 1 ORDER BY nickname ASC");
if (empty($online)) {
$msg = "Nobody online in guild channel!";
} else {
$msg = count($online)." players in guild channel: ";
foreach ($online as $name) {
$msg .= $name[0].", ";
}
}
$this->irc->message(SMARTIRC_TYPE_CHANNEL, $this->bot->settings->get("Irc", "Channel"), $msg);
}
if ((strtolower($this->bot->settings->get("Irc", "Chat")) == "both") ||
(strtolower($this->bot->settings->get("Irc", "Chat")) == "pgroup")) {
$online = $this->bot->db->select("SELECT nickname FROM #___online WHERE botname = '".$this->bot->botname
."' AND status_pg = 1 ORDER BY nickname ASC");
if (empty($online)) {
$msg = "Nobody online in guest channel!";
} else {
$msg = count($online)." players in guest channel: ";
foreach ($online as $name) {
$msg .= $name[0].", ";
}
}
$this->irc->message(SMARTIRC_TYPE_CHANNEL, $this->bot->settings->get("Irc", "Channel"), $msg);
}
}
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Feedback and Suggestions > Topic: irc online spam changes
« previous next »
 
Jump to:  

Recent
Buddylist for guildbot
by Zacix
[Today at 09:43:40 AM]

Link 2 Guilds via 2 Bots?
by Temar
[Today at 08:42:11 AM]

OnlineOrg
by Karsta
[October 13, 2008, 06:54:20 AM]

!security Levels
by Nytridr
[October 12, 2008, 11:36:45 PM]

Bossloot for 5.2
by Brac
[October 12, 2008, 04:45:17 PM]

Ported Modules
by Jiheld
[October 12, 2008, 09:00:13 AM]

raid/point system suggest...
by Temar
[October 11, 2008, 11:45:40 PM]

!timers suggestions: alts...
by Alreadythere
[October 11, 2008, 03:19:46 PM]

!server does not work
by Alreadythere
[October 11, 2008, 06:54:38 AM]

TWC
by clashbot
[October 10, 2008, 08:52:57 AM]
Stats
Members
Total Members: 989
Latest: Syphae
Stats
Total Posts: 10814
Total Topics: 1459
Online Today: 14
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 14
Total: 16
Zacix

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.482 seconds with 28 queries. (Pretty URLs adds 0.026s, 4q)
Loading...