Tekil Mesaj gösterimi
Alt 12 Kasım 2008, 10:31   #1
Çevrimdışı
shardad
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
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 Kod:   Kodu kopyalamak için üzerine çift tıklayın!
/* 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 ?

 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları reklam ver Benimmekan Mobil Sohbet