This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Isit possible to have many host in 1 handle?

Old posts that have not been replied to for several years.
Locked
D
DeadGuy

Isit possible to have many host in 1 handle?

Post by DeadGuy »

I would like to know if it is possible to add about 30 - 40 +host under 1 handle?

If so, will the bot +v all those host if the handle have flags g?
j
jesus21

Post by jesus21 »

ya u can add many host with +v flag so bot will voice them make sure autovoice is enable in channel setting
D
DeadGuy

Post by DeadGuy »

Thanks!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

.+host user *!*@host (you can add as many hosts as you want for the user with any handle you want) so if it has the autovoice handle, the bot will voice him for all the hosts u added.
D
DeadGuy

Post by DeadGuy »

Well actualli I was thinking of just using 1 handle (abc) and add about 5 - 10 different users' *!*@host under abc and give it a g flag on #abc.

What do I need to use in order to tell the bot not to devoice the users that have their *!*@host under handle abc.

Is this the right code?

Code: Select all

if {(isvoice $nick $chan) && (![matchattr $nick $examptflags $chan])} { pushmode $chan -v $nick }
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

DeadGuy wrote:

Code: Select all

if {(isvoice $nick $chan) && (![matchattr $nick $examptflags $chan])} { pushmode $chan -v $nick }
Almost there...

All you have to do to make your 'if' work is replace those ()'s with []'s to have the 'isvoice' executed.

In tcl brackets are used to perform "command substitution". This means what ever's between a opening/close bracket is executed (first word being interpreted as the command and any following words as arguments (read more about this here: http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm)) and the entire thing is then replaced by what's returned by the command.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Well u can do this:
.+host user *!*@host
.+host user2 *!*@host
.+host user3 *!*@host

.......
where *!*@host is the same host.
and then .chattr user <flags> <channel>
so u can set the user autovoice on the channel u want it to only.
and then add your code.

Code: Select all

if {[isvoice $nick $chan] && ![matchattr $nick $examptflags $chan]} { pushmode $chan -v $nick }
D
DeadGuy

Post by DeadGuy »

Ok guys great help THANKS! :D
Locked