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.
Old posts that have not been replied to for several years.
-
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
-
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"
}
-
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?
-
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?
-
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