[MOD] Invite-Responder

Back to Module Support

Page: 1  
From User Message Body
rikardn
Post #408
Member
Date: 5:56 pm, Dec 5 2006
Posts: 7


Invite-Responder by rikardn

This module will allow the bot to catch and autoaccept any invite sent to the bot.&lt;br /&gt;<br />
&lt;br /&gt;<br />
No error-checking is done atm.&lt;br /&gt;<br />
&lt;br /&gt;<br />
Read instructions in readme.txt for info on installation.

Click here for the module information page.

This is a support thread. You can ask questions about this mod, or request feature changes as you wish.

Manick
Post #409
user avatar
Admin
Date: 5:59 pm, Dec 5 2006
Posts: 223


great :-)

--Manick
PHP-IRC Developer
aragno
Post #483
Member
Date: 8:26 am, Mar 9 2007
Posts: 15


Made a small change to my local copy

Code

    public function chan_invite($line)
    {
        $this->ircClass->joinChannel($line['text']);
        $this->ircClass->maintainChannel($line['text']);
    }


This way they get maintained as well and shows up in dcc interface

// aragno

you'll find me in #5thelement on netgamers
rikardn
Post #485
Member
Date: 11:37 pm, Mar 10 2007
Posts: 7


I've added this and will repack and upload the pack again.

Ty for the addition.

mryme
Post #628
Member
Date: 4:44 am, Sep 25 2007
Posts: 4


Apparantly the bot won't rejoin an invited channel when it restarts, either forced or lost connection restart...can we fix this?

rikardn
Post #630
Member
Date: 9:48 pm, Sep 25 2007
Posts: 7


Hum, i'm not sure how it stores the channelinfo, but i have not had that problem myself.
Altho i admit i never had to restart the php-process itselt, my bots always autoreconnect after dropping net (EOF, ping timeout or similar).

Does it write anything in the log or to console?
One way to maintain network/channel connectivity is to write and read from an ini-file.

I'll put that on my long todo-list.

aragno
Post #661
Member
Date: 10:49 am, Dec 30 2007
Posts: 15


At the moment the channels it joins on startup (and maintains) are the ones you define in the config file

Code

channel #chantojoin 
channel #keyprotectedchan key


you could add a module that read an ini file or a db table for chans to join and join them. That module would also have a function to add channels. Not made one of those :)

// aragno

you'll find me in #5thelement on netgamers
Jossie90
Post #664
Member
Date: 3:50 pm, Jan 1 2008
Posts: 9


You could also auto-edit the bot.conf file and delete old channels and insert new channel-lines.


#/dev/null at irc.kwaaknet.org
efreak
Post #682
Member
Date: 12:47 am, Feb 27 2008
Posts: 15


Would there by any chance happen to be a way to make the bot send a privmsg (or two) to a user or memoserv when this module is used? I've been using this bot for a while now, and I recently loaded this module, and it's been abused of late--when the bot reaches the maximum number of channels, some users have been repeating the invite a bunch of times.

I've already modified as shown below to ensure that the channel isnt doubled in the maintain list, but I would like to be notified in pm when the module is used; I'm connected via a bnc, which doesnt record dcc events, so I can't just use those.


Original:
Code
    public function chan_invite($line)
    {
        $this->ircClass->joinChannel($line['text']);
        $this->ircClass->maintainChannel($line['text']);
    }


New:
Code
    public function chan_invite($line)
    {
        $this->ircClass->joinChannel($line['text']);
        $this->ircClass->removeMaintain($line['text']);
        $this->ircClass->maintainChannel($line['text']);
    }




Last edited by efreak at 12:53 am, Feb 27 2008

efreak
Post #683
Member
Date: 1:24 am, Feb 27 2008
Posts: 15


never mind; got the code here:
Code
               $this->ircClass->notice( 'Efreak', "{$line['nick']} has attempted to make me join {$line['text']}" );



New module is being submitted

   

  Pages (2) [ 1 2 ] Next Page

Back to Module Support