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.

Diference ...

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Hi ..Who can help me with the difference betwen a notice to eggdrop and a notice to a channel ? I made an little script but if I send a notice to eggdrop or to channel, my eggdrop is reacting in the same way. I can figure how to separate eggdrop notice and channel notices. I'll paste my code in here if it's necesary. Thx!
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

you need to do checks inside the script to find out the destination of the notice.

If you look in tcl-commands.doc, you will see that the proc's argument definition passes a var, with the destination of the message.

Code: Select all

proc notice {nick uhost hand dest arg} {
  if {[isbotnick $dest]} {
    #message going yo eggdrop
  } else {
    #message going to channel
  }
}
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Thx ppslim for help! I'll post in the tcl section .. soon my "No Channel Notices" tcl. :smile: .. C ya!
Locked