Advertisement
Konradito

Untitled

Jul 27th, 2023
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | Food | 0 0
  1. Standart Don't allow users with umode +B to join (channel mode +B)
  2. u_int is_invited(aClient *sptr, aChannel *chptr) {
  3. for (lp = sptr->user->invited; lp; lp = lp->next)
  4. if (lp->value.chptr == chptr)
  5. return 1;
  6.  
  7. return 0;
  8. }
  9.  
  10. static int m_myjoin(aClient *sptr, aChannel *chptr, char *parv[]) {
  11. if (chptr != NULL && is_invited(sptr, chptr) && MyClient(sptr) && !IsAnOper(sptr) && !IsULine(sptr)) {
  12. if (chptr->mode.extmode & EXTCMODE_NOBOTS && sptr->umodes & UMODE_BOT) {
  13. sendnotice(sptr, "*** Cannot join channel %s: Bots are not permitted.", chptr->chname);
  14. return HOOK_DENY;
  15. }
  16. }
  17. return HOOK_CONTINUE;
  18. }
  19.  
  20. where am i making a mistake, the codes i use are not working i am playing in a ready module can you help me
  21.  
  22. help me
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement