![]() |
| | #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; } | |
| |
| Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
| |