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.

Close channel +invite

Old posts that have not been replied to for several years.
Locked
G
GTM
Voice
Posts: 20
Joined: Sun Sep 30, 2001 8:00 pm

Post by GTM »

I need a script that makes a specific channel +i when a +o user types .close in the channel,
and when a +o types .open it would do -i.

Anyone interested in making it?
GTM@EFnet
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

This should do it:

Code: Select all

bind pub o|o .close chclose_close
bind pub o|o .open chclose_open
proc chclose_close {nick uhost hand chan text} {
	putquick "MODE $chan +i"
}
proc chclose_open {nick uhost hand chan text} {
	putquick "MODE $chan -i"
}
G
GTM
Voice
Posts: 20
Joined: Sun Sep 30, 2001 8:00 pm

Post by GTM »

Thanks alot:)

could it be made so it kicks out everyone not in the userlist of the bots?
_________________
GTM@EFnet

<font size=-1>[ This Message was edited by: GTM on 2001-11-01 18:48 ]</font>
P
PiraYa-

Post by PiraYa- »

is this supposed to be put in the bots config-file?
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Wow I actually have a script like that I wrote for someone a long time ago.

http://home.dal.net/stdragon/eggdrop/privateroom.tcl

Download it to your eggdrop/scripts directory, then in your config file put: source scripts/privateroom.tcl
P
PiraYa-

Post by PiraYa- »

On 2001-11-01 12:43, Wcc wrote:
This should do it:

Code: Select all

bind pub o|o .close chclose_close
bind pub o|o .open chclose_open
proc chclose_close {nick uhost hand chan text} {
	putquick "MODE $chan +i"
}
proc chclose_open {nick uhost hand chan text} {
	putquick "MODE $chan -i"
}
Must I put this in the config-file?
G
GTM
Voice
Posts: 20
Joined: Sun Sep 30, 2001 8:00 pm

Post by GTM »

copy it to a file and call it close.tcl and put it in ur scriptdir
then in the config:
sourcescripts/close.tcl

btw, thanks
GTM@EFnet
Locked