Skip to content
General IRCd

Voice On Join

A TG007 community discussion started by Rashed.

Discussion 15 posts
Page 1 of 1
Open
Topic #16233 · 15 published posts · 3,726 views

Hello all

 

#voiceonjoin on
on *:join:#:{ .mode $chan +v $nick }
#voiceonjoin end
This gives voice on join to all , but this work to all channels
I want to make it on only in specific channel rather than others.

use the full # name on *:join:#testroom:{ .mode $chan +v $nick }

 

from help file

 

on JOIN/PART

 

The on JOIN and on PART events trigger when a user joins or parts a channel.

 

Format: on <level>:JOIN:<#[,#]>:<commands>

Example: on 1:JOIN:#mirc,#irchelp:/msg $nick hiya!

 

Examples

 

on 1:JOIN:#:/msg $chan Welcome $nick

 

This triggers when any user joins any channel which you are on.

 

on 5:PART:#mIRC,#newbies:/describe $chan waves bye-bye to $nick *sniff*

 

This triggers when a user with access level 5 leaves channels #mIRC or #newbies.

Edited Dec 6, 2015 12:09 AM by err0r

Get information about ircWx here

and if room name contains spaces ?

 

 

on *:join:#im here:{ .mode $chan +v $nick }

is this right?!

if the network allows spaces.. depends on the network really

Get information about ircWx here

buzzen ,

and can i put more than one room

with buzzen unless the connection has been edited their rooms are %# and not just # and spaces are \b

 

so you could do

on *:join:*:{ .
if (im\bhere isin #) { mode $chan +v $nick }
}

Get information about ircWx here

on *:join:*:{ .
if (im\bhere isin #) { mode $chan +v $nick }
}

 

or

 

on *:join:*:{ .

if (im\bhere isin %#) { mode $chan +v $nick }
}

 

and can it be

 

on *:join:*:{ .

if (im\bhere,Egypt,test isin %#) { mode $chan +v $nick }
}

Edited Dec 6, 2015 8:57 PM by Rashed

% represents a variable in mIRC so it's best not to use that in the isin.. just use #

Get information about ircWx here

what about comma's and multible room names

Here is an example of how you could do it per room on buzzen.

menu channel {
  $iif($istok(%autojoinroomslist,#,44),$style(1)) Auto Voice #: { 
    $iif($istok(%autojoinroomslist,#,44),set %autojoinroomslist $remtok(%autojoinroomslist,#,44),set %autojoinroomslist $addtok(%autojoinroomslist,#,44)) 
  }
}

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

Get information about ircWx here

this is good

 

want small addition

 

order for admin listed person to open and off this

 

on admin:text:!autovoiceon (action)

 

what is the exact format for the same code you posted

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

Get information about ircWx here

not working the admin order

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
Edited Dec 11, 2015 8:10 PM by err0r

Get information about ircWx here

on *:join:*: {
if ($istok(%autojoinroomslist,#,44)) && ($nick != $me) {
if ($me isop #) mode # +v $nick
}
}

Edited Dec 12, 2015 7:31 AM by Loveness