shardad | 12 Kasım 2008 10:31 | anope-1.7.21 helper host sorunu anope-1.7.21 kurdum fakat eski versiyonda çalışan helperlere oto host olayı çalışmadı. Aşağıdaki şekilde ekledim. PHP- Kodu: /* Check whether a user should be opped on a channel, and if so, do it. * Return 1 if the user was opped, 0 otherwise. (Updates the channel's * last used time if the user was opped.) */ int check_should_op(User * user, char *chan) { ChannelInfo *ci = cs_findchan(chan); if (!ci || (ci->flags & CI_VERBOTEN) || *chan == '+') return 0; if ((ci->flags & CI_SECURE) && !nick_identified(user)) return 0; if (check_access(user, ci, CA_AUTOOP)) { if (!stricmp("#Help", chan)) { send_cmd(s_ChanServ, "CHGHOST %s helper.yes.net", user->nick); send_cmd(s_HelpServ, "PRIVMSG %s :Artik bir helpersiniz.", user->nick); send_cmd(s_HelpServ, "MODE %s +o %s", chan, user->nick); send_cmd(s_HelpServ, "SVS2MODE %s +hW", user->nick); } else { send_cmd(whosends(ci), "MODE %s +o %s", chan, user->nick); } return 1; anope_cmd_mode(whosends(ci), chan, "+o %s", user->nick); return 1; } return 0; } /*************************************************************************/
Bu şekilde ekleyince olmuyor eski versiyonda çalışıyordu.Nerede hata yapıyorum ? Aramalarımda ns_global.c modulünü buldum gayet güzel bir modül fakat bana sadece helper için host lazım olduğundan kurmadım. Bu sorunu nasıl aşabilirim ? |