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 02, 2008, 12:12:35 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: Private group problems
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Private group problems  (Read 722 times)
0 Members and 1 Guest are viewing this topic.
Foxy
Rookie
**
Offline Offline

Posts: 33


Private group problems
« on: April 24, 2007, 07:37:51 AM »

Ive had this problem for a while now, but cant seem to solve whats doing it.

i am running bebot as a Guild bot, We have friends out the guild that we would like on the private group.

Every time someone joins the Private group, They get kicked out of the private group after about 10secs.

I have updated to the latest version to see if it would solve the issue, but still wont work.


I run bot on a linux Shell server using putty.

Ive checked the logs but it dont say anywhere when they were kicked and why.

[2007-04-12 07:10:50]   [TELL]   [INC]   Foxytrader: !invite aopvp
[2007-04-12 07:10:50]   [TELL]   [OUT]   -> Aopvp: You have been invited to the privategroup by Foxytrader.
[2007-04-12 07:10:50]   [TELL]   [OUT]   -> Foxytrader: Aopvp has been invited to guest/raid chat by Foxytrader.
[2007-04-12 07:10:50]   [PGRP]   [MSG]   [Cjbot] Cjbot: Aopvp has been invited to guest/raid chat by Foxytrader.
[2007-04-12 07:10:54]   [PGRP]   [JOIN]   Aopvp joined privategroup.
[2007-04-12 07:11:05]   [PGRP]   [MSG]   [Cjbot] Aopvp: test
[2007-04-12 07:11:05]   [PGRP]   [MSG]   [Cjbot] Cjbot: Aopvp joined the privategroup.

Then aopvp got kicked for no reason..

Logged
Naturalistic
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 221


Re: Private group problems
« Reply #1 on: April 25, 2007, 12:07:03 AM »

Which version of bot are you using?

And if you've modded anything in the PrivGroup module, can you post that so we could get an idea as to what might be causing that problem?
Logged

220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php
Foxy
Rookie
**
Offline Offline

Posts: 33


Re: Private group problems
« Reply #2 on: April 25, 2007, 03:27:02 AM »

BeBot v0.2.11

Code: (PrivGroup.php)
<?
/*
* PrivGroup.php - Basic featureset for private group handeling (join/kick etc)
*
* BeBot - An Anarchy Online Chat Automaton
* Copyright (C) 2004 Jonas Jax
*
* Developed by Blondengy (RK1)
* Special thanks goes out to Khalem (RK1) for his support.
*
* File last changed at $LastChangedDate: 2005-12-12 19:34:04 -0500 (Mon, 12 Dec 2005) $
* Revision: $Id: PrivGroup.php 37 2005-12-13 00:34:04Z shadowmaster $
*/


$privgroup = new PrivGroup($bot);


$commands["tell"]["join"] = &$privgroup;
$commands["tell"]["chat"] = &$privgroup;
$commands["tell"]["leave"] = &$privgroup;
$commands["tell"]["invite"] = &$privgroup;
$commands["tell2"]["leave"] = &$privgroup;
$commands["pgmsg"]["leave"] = &$privgroup;
$commands["pgmsg"]["invite"] = &$privgroup;
$commands["pgmsg"]["kick"] = &$privgroup;
$commands["gc"]["join"] = &$privgroup;



/*
The Class itself...
*/
class PrivGroup
{
var $bot;



/*
Constructor:
Hands over a referance to the "Bot" class.
*/
function PrivGroup (&$bot)
{
$this -> bot = &$bot;
}



/*
This gets called on a tell with the command
*/
function tell($name, $msg)
{
if (preg_match("/^" . $this -> bot -> commpre . "join/i", $msg))
$this -> bot -> aoc -> privategroup_invite($name);
else if (preg_match("/^" . $this -> bot -> commpre . "chat/i", $msg))
$this -> bot -> aoc -> privategroup_invite($name);
else if (preg_match("/^" . $this -> bot -> commpre . "invite$/i", $msg))
$this -> bot -> aoc -> privategroup_invite($name);
else if (preg_match("/^" . $this -> bot -> commpre . "leave/i", $msg))
$this -> bot -> aoc -> privategroup_kick($name);
else if (preg_match("/^" . $this -> bot -> commpre . "invite (.+)$/i", $msg, $info))
$this -> invite($name, "tell", $info[1]);
else
$this -> bot -> send_help($name);
}



/*
This gets called on a tell with the command from person outside guild
*/
function tell2($name, $msg)
{
$this -> bot -> aoc -> privategroup_kick($name);
}



/*
This gets called on a msg in the privgroup with the command
*/
function pgmsg($name, $msg)
{
if (preg_match("/^" . $this -> bot -> commpre . "leave/i", $msg))
$this -> bot -> aoc -> privategroup_kick($name);
else if (preg_match("/^" . $this -> bot -> commpre . "invite (.+)$/i", $msg, $info) && ($this -> bot -> is_member($name)))
$this -> invite($name, "pgmsg", $info[1]);
else if (preg_match("/^" . $this -> bot -> commpre . "kick (.+)$/i", $msg, $info) && ($this -> bot -> is_member($name)))
$this -> kick($name, $info[1]);
}



/*
This gets called on a msg in the guildchat with the command
*/
function gc($name, $msg)
{
if (preg_match("/^" . $this -> bot -> commpre . "join/i", $msg))
$this -> bot -> aoc -> privategroup_invite($name);
}



/*
Kicks a user
*/
function kick($name, $who)
{
if ($this -> bot -> raidbot || $this -> bot -> admin -> in_group($name, "admin") ||
$this -> bot -> admin -> in_group($name, "raidleader"))
$this -> bot -> aoc -> privategroup_kick($who);
else
$this -> bot -> send_tell($name, "You do not have permission to kick someone.");
}



/*
Invite a user to private group.
*/
function invite($from, $type, $who)
{
if (($this -> bot -> guildbot && $this -> bot -> is_member($from)) ||
$this -> bot -> admin -> in_group($from, "raidleader") ||
$this -> bot -> admin -> in_group($from, "admin") ||
$this -> bot -> admin -> in_group($from, "superadmin"))
{
$msg = "Player <font color=#ffff00>" . $who . "</font> does not exist.";
if ($this -> bot -> aoc -> get_uid($who))
{
$this -> bot -> aoc -> privategroup_invite($who);
$this -> bot -> send_tell($who, "You have been invited to the privategroup by " . $from . ".");
$msg = "<font color=#ffff00>" . $who . "</font> has been invited.";
}
}
else
$msg = "You do not have permission to use this command.";


if ($type == "tell")
$this -> bot -> send_tell($from, $msg);
else
$this -> bot -> send_pgroup($msg);
}
}
?>
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: Private group problems
« Reply #3 on: April 25, 2007, 04:32:31 AM »

I can't see any reason why users are kicked again tbh.

Looks all like it should.
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Private group problems
« Reply #4 on: April 25, 2007, 06:18:04 AM »

You don't have an extremely spammy welcome message or something which could cause the guy to be disconnected from the chat server?

-jj-
Logged
Foxy
Rookie
**
Offline Offline

Posts: 33


Re: Private group problems
« Reply #5 on: April 25, 2007, 07:31:33 AM »

when i join the private group i get no welcome msg's appear.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: Private group problems
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 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: 11144
Total Topics: 1505
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 13
Total: 15
Temar
Elesar1

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.349 seconds with 30 queries. (Pretty URLs adds 0.028s, 4q)
Loading...