Jump to content

Voice On Join


Rashed

Recommended Posts

This should work like you want.

menu channel {
  $iif($istok(%autojoinroomslist,#,44),$style(1)) Auto Voice #: { 
    $iif($istok(%autojoinroomslist,#,44),set %autojoinroomslist $remtok(%autojoinroomslist,#,44),set %autojoinroomslist $addtok(%autojoinroomslist,#,44)) 
  }
}
menu nicklist {
  $iif(admin isin $level($address($$1,1)),$style(1)) Admin Level: { $iif(admin isin $level($address($$1,1)),.ruser admin $address($$1,1),.auser -a admin $address($$1,1) $$1) }
}

on admin:text:*:#:{
  if ($istok(%autojoinroomslist,#,44)) {
    if (!autovoiceon isin $1-) { .enable #voicejoin | .msg # Auto Voice Activated | halt }
    if (!autovoiceoff isin $1-) { .disable #voicejoin | .msg # Auto Voice Deactivated | halt }
  }
}

#voicejoin off
on *:join:*: {
  if ($istok(%autojoinroomslist,#,44)) {
    mode # +v $nick 
  }
}
#voicejoin end

Link to comment
Share on other sites

Try this variation

menu channel {
  $iif($istok(%autojoinroomslist,#,44),$style(1)) Auto Voice #: { 
    $iif($istok(%autojoinroomslist,#,44),set %autojoinroomslist $remtok(%autojoinroomslist,#,44),set %autojoinroomslist $addtok(%autojoinroomslist,#,44)) 
  }
}
menu nicklist {
  $iif(admin isin $level($address($$1,1)),$style(1)) Admin Level: { $iif(admin isin $level($address($$1,1)),.ruser admin $address($$1,1),.auser -a admin $address($$1,1) $$1) }
}

on *:text:*:#:{
  if (admin isin $level($address($nick,1))) {
    if ($istok(%autojoinroomslist,#,44)) {
      if (!autovoiceon isin $1-) { .enable #voicejoin | .msg # Auto Voice Activated | halt }
      if (!autovoiceoff isin $1-) { .disable #voicejoin | .msg # Auto Voice Deactivated | halt }
    }
  }
}

#voicejoin off
on *:join:*: {
  if ($istok(%autojoinroomslist,#,44)) {
    mode # +v $nick 
  }
}
#voicejoin end
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...