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.

Why is this not a public command???

Old posts that have not been replied to for several years.
Locked
t
thughes0126

Why is this not a public command???

Post by thughes0126 »

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.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Your bind is missing the flag. Maybe you've got some old left over bind on n|n or something from testing? Check your .binds
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Re: Why is this not a public command???

Post by arcane »

thughes0126 wrote:bind pub !games pub:d
the correct syntax would be:

Code: Select all

bind pub - !games pub:d
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")
...
Locked