collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: irc online spam changes  (Read 4716 times)

0 Members and 1 Guest are viewing this topic.

Offline Parfet

  • BeBot User
  • **
  • Posts: 33
  • Karma: +0/-0
irc online spam changes
« on: August 03, 2007, 04:21:58 pm »
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: [Select]
/*
* 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);
}
}

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 124
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal