Unreal IRCd Unreal sunucunuzda rastladığınız sorunların çözümüne bu başlık altından ulaşabilirsiniz. |
|
Seçenekler | Stil |
27 Temmuz 2022, 23:01 | #1 |
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 |
|
|
27 Temmuz 2022, 23:06 | #2 |
hello, what exactly are you trying to do?
|
|
|
27 Temmuz 2022, 23:07 | #3 |
where is the error in these codes?
|
|
|
27 Temmuz 2022, 23:10 | #4 |
you want us to fix the problem
|
|
|
27 Temmuz 2022, 23:13 | #5 |
yes I couldn't find where I made a mistake, it doesn't work when compiling
|
|
|
27 Temmuz 2022, 23:19 | #6 |
this module is an existing module as a result of my review, I see incompleteness in your code
Kodu_int is_invited(aClient *sptr, aChannel *chptr) { KodLink *lp; Kodif (chptr != NULL && is_invited(sptr, chptr) && MyClient(sptr) && !IsAnOper(sptr) && !IsULine(sptr)) { Kodif (chptr != NULL && !is_invited(sptr, chptr) && MyClient(sptr) && !IsAnOper(sptr) && !IsULine(sptr)) { |
|
|
27 Temmuz 2022, 23:26 | #7 |
thank you very much ircrehberi
|
|
|
Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
|
|