Hello all
A TG007 community discussion started by Rashed.
Hello all
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.
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 }
}
% 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
Get information about ircWx here
on *:join:*: {
if ($istok(%autojoinroomslist,#,44)) && ($nick != $me) {
if ($me isop #) mode # +v $nick
}
}
Sign in to reply or start a new topic where your account has permission.