IRCRehberi.Net- Türkiyenin En iyi IRC ve Genel Forum Sitesi  
 sohbet
derya sohbet


Unreal IRCd Unreal sunucunuzda rastladığınız sorunların çözümüne bu başlık altından ulaşabilirsiniz.

4Beğeni(ler)
  • 1 Post By Wollks
  • 3 Post By OmerAti


 
 
Seçenekler Stil
Alt 27 Temmuz 2022, 23:01   #1
Standart Don't allow users with umode +B to join (channel mode +B)

u_int is_invited(aClient *sptr, aChannel *chptr) {
for (lp = sptr->user->invited; lp; lp = lp->next)
if (lp->value.chptr == chptr)
return 1;

return 0;
}

static int m_myjoin(aClient *sptr, aChannel *chptr, char *parv[]) {
if (chptr != NULL && is_invited(sptr, chptr) && MyClient(sptr) && !IsAnOper(sptr) && !IsULine(sptr)) {
if (chptr->mode.extmode & EXTCMODE_NOBOTS && sptr->umodes & UMODE_BOT) {
sendnotice(sptr, "*** Cannot join channel %s: Bots are not permitted.", chptr->chname);
return HOOK_DENY;
}
}
return HOOK_CONTINUE;
}

where am i making a mistake, the codes i use are not working i am playing in a ready module can you help me

help me
 
Alt 27 Temmuz 2022, 23:06   #2
Standart

hello, what exactly are you trying to do?

 
Alt 27 Temmuz 2022, 23:07   #3
Standart

where is the error in these codes?

 
Alt 27 Temmuz 2022, 23:10   #4
Standart

you want us to fix the problem

 
Alt 27 Temmuz 2022, 23:13   #5
Standart

yes I couldn't find where I made a mistake, it doesn't work when compiling

 
Alt 27 Temmuz 2022, 23:19   #6
Standart

this module is an existing module as a result of my review, I see incompleteness in your code

Kod

u_int is_invited(aClient *sptr, aChannel *chptr) {
just below

Kod

Link    *lp;
add and

Kod

if (chptr != NULL && is_invited(sptr, chptr) && MyClient(sptr) && !IsAnOper(sptr) && !IsULine(sptr)) {
Can you try replacing this line with the following line?

Kod

if (chptr != NULL && !is_invited(sptr, chptr) && MyClient(sptr) && !IsAnOper(sptr) && !IsULine(sptr)) {
shouldn't be a problem

 
Alt 27 Temmuz 2022, 23:26   #7
Standart

thank you very much ircrehberi

 


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı





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