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.

on-join & +autop

Old posts that have not been replied to for several years.
Locked
K
Karmulian

Post by Karmulian »

i need help with a script.
using http://www.planetarion.com and the chanserv bot P
in order to be op in a channel u have to be logged into him .
however more recently this bot keeps d/cing

so i have setup a channel op bot

what i need is a script..
that when P is in the channel . my bot has chanset -autoop
and when P leaves/quits the channel
it does chanset +autoop

is this possible. and if so..... who do i talk to
b
blaster^

Post by blaster^ »

see help on PART and JOIN and chanset in tcl-commands.doc

W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Try this, its untested and i'm druck, but it should work :smile:

Code: Select all

# Set P's hostmask here.
set p_host "P!*@*"

# Set the channels you want this script to work on here.
set p_channels "#channel1 #channel2"

# code starts here #
bind join - $p_host p_join
bind part - $p_host p_part

proc p_join {nick uhost hand chan} {
	channel set $chan -autoop
}
proc p_part {nick uhost hand chan} {
	channel set $chan +autoop
}
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Try this, its untested and i'm druck, but it should work :smile:

Code: Select all

# Set P's hostmask here.
set p_host "P!*@*"

# Set the channels you want this script to work on here.
set p_channels "#channel1 #channel2"

# code starts here #
bind join - $p_host p_join
bind part - $p_host p_part

proc p_join {nick uhost hand chan} {
	channel set $chan -autoop
}
proc p_part {nick uhost hand chan} {
	channel set $chan +autoop
}
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

oops, thats "drunk" not "druck" and it is quite obvious, isnt it? :smile:
Locked