pope
commented on a Snippet, Trivia - May 17, 2012
@kggr001 I assume that you are attempting to initiate the script from the same bot that is running it, and that bot does not have ops on the channel that it is running on. I edited my original comment with an altered code that should work.
Reply if it doesn't. There are other ways, but I think this is the simplest given how the script was designed.
pope
commented on a Snippet, Trivia - May 16, 2012
@kggr001: Don't use @2:, as all that tells the script to do is only run if you have ops on the channel.
Because of the broad way that *:on:text is used, just add this code BETWEEN line 100 and line 101:
OLD CODE:
Line 100: if ($hget(trivia,status) != on) {
Line 101: hadd -m trivia status on
NEW CODE:
Line 100: if ($hget(trivia,status) != on) {
Line 101: if ($nick isreg $chan) or ($nick isvoice $chan) && ($nick != $me) {
Line 102: msg $chan You do not have the proper access to start Trivia.
Line 103: halt
Line 104 }
Line 105: hadd -m trivia status on
There is probably a shorter way, but I haven't scripted in years so I'm a bit rusty. This should meet your needs, but reply if it doesn't.
@ kirby 1. auto updating is a feature that is able to be turned off, but i will consider a dialog that lets you know and select whether to update or not. 2. i am using tabs :P
i didn't do either of those for these reasons: 1. if i make it work without the !, it could kick someone for stating a number not related to their age. the ! makes it intentional. 2. if someone enters with a nick and is underage, it will blacklist the nick (even if the next person that uses that nick is of age). Thanks for the ideas though! keep em coming and give me more feedback! :)
i really hope im one of the first to employ auto update scripts bc that would be cool! :)
ty for the input kirby! will incorporate into version 1.1 :)
i just hastily wrote this script bc its pretty much the most useful script idea ive ever had haha
yeah i debated that, but decided that it wouldnt work in all instances, so i think i might go with $cb(1) if anything. ty for the suggestion tho! keep 'em commin! :)