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.

Sending message, quite difficult :/

Old posts that have not been replied to for several years.
Locked
Z
Zariffa
Voice
Posts: 22
Joined: Sat Jan 03, 2004 12:13 am

Sending message, quite difficult :/

Post by Zariffa »

Hello all,

I have a real big problem. I don't know TCL, and I have an Eggdrop, and I want him to do one thing :

To send a :
/msg MAINNICK ARG1 ARG2
when he JOIN, or when MAINNICK join to a channel.

Can somone write me this little code please ? :/
I hate ask for that because all of you have other things to do :/ But i'm a noob, sorry :/

Thanks in advance.
User avatar
Xpert
Halfop
Posts: 88
Joined: Mon Mar 08, 2004 7:03 am

Post by Xpert »

When MAINNICK join to any channel, the eggdrop will send him private message (ARG1 ARG2)?
Ok.

Code: Select all

bind join - * join:mainnick
proc join:mainnick {nick host hand chan} {
  if {[string equal -nocase "MAINNICK" "$nick"]} {
    putserv "privmsg $nick :ARG1 ARG2"
  }
}
Xpert.
Locked