Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: serv  (Read 4707 times)

0 Members and 1 Guest are viewing this topic.

t0s

  • Anope User
  • Offline Offline
  • Posts: 2
serv
« on: March 08, 2008, 04:18:50 PM »

is there a module or a way i can get rid of all the services bot chanserv nickserv etc and just have one bot nick "Serv" where all the services command go through it like /msg serv nick help /msg serv chan help etc
Logged

Trystan Scott Lee

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 343
(No subject)
« Reply #1 on: March 08, 2008, 04:32:12 PM »

Doable, the code wouldn't be to hard, the harder part is that there maybe odd places of reference in the code where it talks about ChanServ or NickServ instead of from a variable.

Guess this gives me something to do today
Logged
my God my tourniquet, return to me salvation

t0s

  • Anope User
  • Offline Offline
  • Posts: 2
(No subject)
« Reply #2 on: March 08, 2008, 04:40:34 PM »

id like Serv to be the main services bot no bot/nick/oper/chan/memo etc
Logged

katsklaw

  • Guest
(No subject)
« Reply #3 on: March 08, 2008, 05:17:08 PM »

The conf parser requires all bots except HostServ and BotServ, so the bots should still load. Renaming the bots won't help much as most references to the bots are dynamic via s_*Serv
Logged

katsklaw

  • Guest
(No subject)
« Reply #4 on: March 08, 2008, 05:17:38 PM »

moved to the modules forum btw.
Logged

Trystan Scott Lee

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 343
(No subject)
« Reply #5 on: March 08, 2008, 11:41:57 PM »

Steps to make this work

1. All service bots have to be defined in the config - this can not be overridden
2. The mod will part these services back offline rendering any ircd command for /chanserv etc not work
3. The mod will bring the new Serv online
4. The mod will redefine the internal variables to match the new Serv name
5. The mod will trap for privmsg to Serv and route them into the command struct accordingly

As long as the name ChanServ is not hard coded it should appear as if Serv is the one replying Although all help files will be slightly off since they do not prefix the commands so asking for serv nick help register will show as if its /ns register cause there is no way other than to hack the lang files to make that happen
Logged
my God my tourniquet, return to me salvation
Pages: [1]   Go Up