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.
Old posts that have not been replied to for several years.
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Wed Oct 24, 2001 1:52 pm
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!
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Wed Oct 24, 2001 9:29 pm
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
}
}
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sun Oct 28, 2001 6:36 am
Thx ppslim for help! I'll post in the tcl section .. soon my "No Channel Notices" tcl.
.. C ya!