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.

unbind command inactive for a chan

Old posts that have not been replied to for several years.
Locked
d
daltanius
Voice
Posts: 23
Joined: Fri Nov 14, 2003 10:52 pm

unbind command inactive for a chan

Post by daltanius »

Dear Sirs,
i want unbind command inactive for a chan.
Can i do this?

thx
Dalatanius
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

i'm sorry, could you make the question a little bit more specific ?

do you mean the chanflag +/-inactive ? .chanset #channel +/-inactive

or do you want to disable a trigger for a special channel ?
User avatar
gumbydammit
Master
Posts: 311
Joined: Thu Sep 05, 2002 4:52 pm
Location: Canada
Contact:

Post by gumbydammit »

i think he means like deludef altho im not sure why you would want to delete that channel flag.. simply dont use it if you dont like it :)
a.k.a. hellios
d
daltanius
Voice
Posts: 23
Joined: Fri Nov 14, 2003 10:52 pm

chanset #channel +/-inactive

Post by daltanius »

I want unbind this command : .chanset #channel +/-inactive


thx

Dalanius
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Re: chanset #channel +/-inactive

Post by GodOfSuicide »

daltanius wrote:I want unbind this command : .chanset #channel +/-inactive
you mean you want to DISABLE the chanflag +inactive ?
if yes : you would have to redo the .chanset command (or check if a chan has +inactive with a timer)
but i dont get why you would want that....as said, if you dont want it dont use it
d
daltanius
Voice
Posts: 23
Joined: Fri Nov 14, 2003 10:52 pm

I want DISABLE the chanflag +inactive

Post by daltanius »

I want DISABLE the chanflag +inactive because some users not know join on mine bots and have tried take mine chan with command : .-chan #chan and .chanset +inactive #chan

thx
Daltanius
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The disable the commands except certain users using something like this:

Code: Select all

# What users (theyr handle aka. under what name they are known by the bot) to be allowed to use the commands?
set allowed "bla foo bar" 

bind filt - ".chanset *" dcc:allow
bind filt - ".*chan *" dcc:allow

proc dcc:allow {idx args} { 
  global allowed 
  set usernick [idx2hand $idx]
  if {[lindex $args 1] == ""} { 
    set icmd [lindex $args 0]
    set args "$icmd "
  }
  if {[lsearch -exact [string tolower $allowed] [string tolower $usernick]] == -1} {
    putdcc $idx "What? You need '.help'"
    } else {
    return $args
  }
}
Once the game is over, the king and the pawn go back in the same box.
User avatar
gumbydammit
Master
Posts: 311
Joined: Thu Sep 05, 2002 4:52 pm
Location: Canada
Contact:

Post by gumbydammit »

umm chanset is an owner command.. real simple solution.. dont make people owner of your bot if you think they are silly enough to set channels inactive in some lame takeover attempt lol.. obviously these people are not trustworthy enough to have +n #chan
a.k.a. hellios
Locked