Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: ircd_init change  (Read 3707 times)

0 Members and 1 Guest are viewing this topic.

deiks

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 139
  • Shizle my nizle
ircd_init change
« on: June 29, 2007, 09:10:19 AM »

Hi

I'm first time here.
What I want to know is it is posible to recompile ircd_init that chanserv does not join all channel, just log channel :)

Thanks

network
Logged

katsklaw

  • Guest
(No subject)
« Reply #1 on: June 29, 2007, 01:06:38 PM »

yes it's possible.

Find this:
Code: [Select]

void load_chanserv()

{
ChannelInfo *ci;
int i = 0;
for (i = 0; i < 256; i++) {
for (ci = chanlists[i]; ci; ci = ci->next) {
if ((ci->flags & CI_VERBOTEN) || (ci->flags & CI_SUSPENDED)) {
continue;
}
anope_cmd_join(s_ChanServ, ci->name, time(NULL));
if (!stricmp(IRCDModule, "inspircd") ||
!stricmp(IRCDModule, "plexus") ||
!stricmp(IRCDModule, "ptlink") ||
!stricmp(IRCDModule, "inspircd") ||
!stricmp(IRCDModule, "ultimate2") ||
!stricmp(IRCDModule, "unreal32") ||
!stricmp(IRCDModule, "viagra")) {
anope_cmd_mode(s_ChanServ, ci->name, "+ao %s %s", s_ChanServ, s_ChanServ);
} else {
anope_cmd_mode(s_ChanServ, ci->name, "+o %s", s_ChanServ);
}
}
}
return;
}


and change it to this:
Code: [Select]

void load_chanserv()
{
        anope_cmd_join(s_ChanServ, LogChannel, time(NULL));
        anope_cmd_mode(s_ChanServ, LogChannel, "%s %s", ircd->chanservmode, s_ChanServ);
        return;
}
Logged

deiks

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 139
  • Shizle my nizle
(No subject)
« Reply #2 on: June 29, 2007, 02:06:03 PM »

thanks,

can you just tell me which program is best to open dll file

:)
Logged

katsklaw

  • Guest
(No subject)
« Reply #3 on: June 29, 2007, 02:42:43 PM »

Quote
Originally posted by network
thanks,

can you just tell me which program is best to open dll file

:)


You can't edit dlls as they are compiled.
Logged
Pages: [1]   Go Up