bind pub !games pub:d
proc pub:d {nick uhost hand chan text} {
global games
set game [lindex [split $text " "] 0]
if {$text != "" && [onchan $game $chan]} {
puthelp "NOTICE $game :Game Listing"
foreach line $games { puthelp "NOTICE $game :$line" }
return 0
}
foreach line $games {puthelp "PRIVMSG $chan :$line" }
}
Can anyone see why this is not a public command, seems something only happens when I type the trigger, !games, when other people try to type it, it doesnt work, please help, I searched many a script and this basic one meets all my needs if I cant get this figured out.
where "-" is the user-flag that is needed for people to call your function.
"-" would be "all users"
"o|o" ops on the bot (e.g. "bind pub o|o !games pub:d")
...