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.
S
Voice
Posts: 13 Joined: Fri Nov 05, 2004 1:05 pm
Location: Bosnia (RS) / Switzerland
Post
by S » Mon Nov 08, 2004 9:16 am
Is that right?
[mIRC-Code]
Code: Select all
on *:TEXT:!no_chan*:#services:{
set %no_chan_chan $2
set %no_chanrs $3
/as security nochan add %no_chan %no_chanrs
unset %no_chan_chan
unset %no_chanrs
}
[TCL-Code]
Code: Select all
bind pub - !no_chan no_chan
proc no_chan {n u h c t} {
if {[string tolower $c] == "#services"} {
set t [split $t]; set no_chan_chan [lindex $t 0]
set no_chan_reason [lindex $t 1]
utimer 1 [list putserv "adminserv security nochan add $no_chan_chan $no_chan_reason"]
}
}
metroid
Owner
Posts: 771 Joined: Wed Jun 16, 2004 2:46 am
Post
by metroid » Mon Nov 08, 2004 10:41 am
Why don't you just test it yourself?
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Mon Nov 08, 2004 10:42 am
it is
in this case you don't need a timer though, since you are issuing a single command
S
Voice
Posts: 13 Joined: Fri Nov 05, 2004 1:05 pm
Location: Bosnia (RS) / Switzerland
Post
by S » Mon Nov 08, 2004 2:25 pm
How I can it do without timer?
greenbear
Owner
Posts: 733 Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway
Post
by greenbear » Mon Nov 08, 2004 2:26 pm
Code: Select all
putserv "adminserv security nochan add $no_chan_chan $no_chan_reason"
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Mon Nov 08, 2004 6:51 pm
gb wrote: Code: Select all
putserv "adminserv security nochan add $no_chan_chan $no_chan_reason"
he probably needs a ':' before the reason; ircd command handlers normally need that in order to be able to recognize white space as part of a string, not as parameter separator
S
Voice
Posts: 13 Joined: Fri Nov 05, 2004 1:05 pm
Location: Bosnia (RS) / Switzerland
Post
by S » Mon Nov 08, 2004 11:42 pm
I don't understand!?
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Tue Nov 09, 2004 7:41 am
I think this is what is suggested:
Code: Select all
bind pub - !no_chan no_chan
proc no_chan {n u h c t} {
if {[string tolower $c] == "#services"} {
set t [split $t]; set no_chan_chan [lindex $t 0]
set no_chan_reason [lindex $t 1]
putserv "adminserv security nochan add $no_chan_chan :$no_chan_reason"
}
}
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
metroid
Owner
Posts: 771 Joined: Wed Jun 16, 2004 2:46 am
Post
by metroid » Tue Nov 09, 2004 9:59 am
No i'd go with
Code: Select all
putserv "adminserv :security nochan add $no_chan_chan $no_chan_reason"
as adminserv is command and the rest is just what you fill in :p