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.

Help with script

Old posts that have not been replied to for several years.
Locked
S
S
Voice
Posts: 13
Joined: Fri Nov 05, 2004 1:05 pm
Location: Bosnia (RS) / Switzerland

Help with script

Post by S »

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"]
  } 
}
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Why don't you just test it yourself?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

it is

in this case you don't need a timer though, since you are issuing a single command
S
S
Voice
Posts: 13
Joined: Fri Nov 05, 2004 1:05 pm
Location: Bosnia (RS) / Switzerland

Post by S »

How I can it do without timer?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Code: Select all

putserv "adminserv security nochan add $no_chan_chan $no_chan_reason"
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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
S
Voice
Posts: 13
Joined: Fri Nov 05, 2004 1:05 pm
Location: Bosnia (RS) / Switzerland

Post by S »

I don't understand!?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

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
Locked