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.

commands to identify private

Help for those learning Tcl or writing their own scripts.
Post Reply
d
demetrius_reis
Halfop
Posts: 42
Joined: Tue Aug 10, 2010 9:54 am

commands to identify private

Post by demetrius_reis »

proc anticheater {nick uhost channel handle rest args} {
putserv "PRIVMSG $nick : -=-=- Download Anti-Cheater -=-=-"
putserv "PRIVMSG $nick :  "
putserv "PRIVMSG $nick : Baixe Aqui: http://www.agemania.com.br/?pag=anticheater"
putserv "PRIVMSG $nick : Voltar ao Menu Principal: !Menu"
}

How does the bot to identify private commands
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

The msg or msgm bindings would be a good start.
As for your list of parameters, they don't match any known binding, and you really, really, really should avoid using "args" as the name of a parameter unless you explicitly need the variable parameters function for your proc (which you hardly ever need with eggdrops, since all bindings use a fixed number of parameters).
NML_375
d
demetrius_reis
Halfop
Posts: 42
Joined: Tue Aug 10, 2010 9:54 am

Post by demetrius_reis »

oks
ty !!
Post Reply