Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: How can I make multiple botserv bots join the same channel?  (Read 6904 times)

0 Members and 1 Guest are viewing this topic.

outz

  • Anope User
  • Offline Offline
  • Posts: 4
How can I make multiple botserv bots join the same channel?
« on: April 14, 2006, 06:18:18 PM »

Hi

How can I make multiple botserv bots join the same channel?
As of now when I assign the second botserv bot it auto unassigns the original bot.

thanks
Logged

outz

  • Anope User
  • Offline Offline
  • Posts: 4
(No subject)
« Reply #1 on: April 14, 2006, 07:05:07 PM »

Code: [Select]
   else {
        if (ci->bi)
            unassign(u, ci);
        ci->bi = bi;
        bi->chancount++;
        if (ci->c && ci->c->usercount >= BSMinUsers) {
            bot_join(ci);
        }
        notice_lang(s_BotServ, u, BOT_ASSIGN_ASSIGNED, bi->nick, ci->name);
    }
    return MOD_CONT;
}


This looks like the area in botserv.c that is forcing the existing bot to unassign when assigning a new bot... but im not a programmer.
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #2 on: April 14, 2006, 07:31:35 PM »

you can't.

not without changing the source or without using raw, neither or which is supported

and yea that looks like the part, but simply removing that will prolly not work... having 2 services bots in 1 channel might even cause all events to be triggered twice, leading to loads and loads of broken stuff

[Edited on 14-4-2006 by Viper]
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

outz

  • Anope User
  • Offline Offline
  • Posts: 4
(No subject)
« Reply #3 on: April 14, 2006, 07:39:17 PM »

yeah, you're probably right about events being triggered twice... i didn't consider that.
Logged

outz

  • Anope User
  • Offline Offline
  • Posts: 4
(No subject)
« Reply #4 on: April 16, 2006, 03:53:51 PM »

figured it out without any code changes. get the CLIENTJOIN module and that will force all service bots to join a channel. simply kick the ones you don't want.
Logged

ShelLuser

  • Guest
(No subject)
« Reply #5 on: April 18, 2006, 05:01:30 PM »

Still, this really sounds like a bad idea to me simply because a service bot is just that; a front end to chanserv. Having multiple bots will only limit your services in the end and won't get you any improvements over behaviour.
Logged
Pages: [1]   Go Up