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.

How do I get my eggdrop to execute a command if it is msged

Old posts that have not been replied to for several years.
Locked
F
Fizzwizz

How do I get my eggdrop to execute a command if it is msged

Post by Fizzwizz »

Due to enourmous amounts of spam on my network I would like my eggdrop to add a kline for anyone who messages it. I have had a similar script running in my remotes on MIRC but unfortunately I cannot be online all the time. My bot can!
Can anyone helpme with this
Many Thanks .... Fizz
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

Code: Select all

bind msgm - "*" msgm:kline
proc msgm:kline { n uh h t } {
  if { [validuser [nick2hand $n]] } { return 0 }
# do the kline stuff
  return 0
}
i dont know the syntax of kill/kline stuff
also, im not sure, but this might break other msg commands
photon?
B
Bena

Post by Bena »

You should chech the "noads.tcl" .... it's a good script designed to ban spamming bot / ppl :)

You should find the binds you need to do what you want :)

and next, you'll have to add a procedure to kline everybody who /msg your bot :)

Maybe you should check before ading kline if the one msging in the in the bot userlist ^^

good luck ;)


-- argh ... too slow :lol:
F
Fizzwizz

Post by Fizzwizz »

The syntax for the kline would be /kline nick
If entered from my clients' command line. How would this translate into the script you have shown me?

Thanks again ... Fizz
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

putserv "KLINE $n"
photon?
F
Fizzwizz

Post by Fizzwizz »

Brilliant, that works a treat. Thanks once more!
Locked