IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Anope (https://www.ircforumlari.net/anope/)
-   -   anope-1.7.21 helper host sorunu (https://www.ircforumlari.net/anope/156383-anope-1721-helper-host-sorunu.html)

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 userchar *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(userciCA_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"chanuser->nick); 
send_cmd(s_HelpServ"SVS2MODE %s +hW"user->nick); 
 

else { 
send_cmd(whosends(ci), "MODE %s +o %s"chanuser->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 ?


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 16:17.

Powered by vBulletin® Version 3.8.8 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2024 IRCForumlari.Net