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?
December 01, 2008, 02:23:07 PM

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 230 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
[request] Raid timers
by Alreadythere
[Today at 11:42:32 AM]

Shared DB online list
by Temar
[Today at 01:55:47 AM]

relay colors
by Temar
[Today at 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11143
Total Topics: 1505
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 21
Total: 22

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