Description: just like MSGM, except it's triggered by things said
on a channel instead of things /msg'd to the bot. The mask is
matched against the channel name followed by the text and can
| contain wildcards. If the proc returns 1, Eggdrop will not log
| the message that triggered this bind. PUBM binds are processed
| before PUB binds. If the exclusive-binds setting is enabled,
| PUB binds will not be trigged by text that a PUBM bind has
| already handled.
Module: irc
Obviously, you're missing a variable to handle the <text> argument. Modify your proc-head accordingly.
Also, as stated above, the mask is matched against "<channel> <text>", so your binding will never trigger. Something like "% sometext" would match "sometext" on any channel
bind pubm -|- "% hello there" hello
proc hello {nickname hostname handle channel text} {
if {$channel == "#mychan"} {
putquick "PRIVMSG #mychan :Hello welcome to #mychan"
}
# set this to 'return 1' if you don't want the trigger being logged
return 0
}