Whats all the big deal about where it goes as cheiron said he explained why he posted it here and thats all there is ...... Post away Cheiron and its a good post and a helpful one to new people joining and learning IRC .... Like me !!
Err? Pretty sure after napas first post you agreed with napa that it should be posted in the Forums?
Ass licking much? claps
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! :)
I agree with the no prefix. However, I've created my own age script, that uses .inis. That records the hostmask, rather than the nick. That way it'll remember who's who, and for multiple nicks, and it'll save on having to ask everyone each time they rejoin the channel.
Heh. Well considering that has never done it on anyone elses but yours, that proves that it's user error. :)
(21:10:38) [~Jordan] !rules
(21:10:39) [+Atmosphere] Displaying A List Of Rules For #inspircd:
(21:10:40) [+Atmosphere] 1) Respect the ops.
(21:10:41) [+Atmosphere] 2) Don't beg for ops, they will be given to you when we are ready.
(21:10:41) [+Atmosphere] End of list. 2 entry(s) displayed.
(21:10:51) [~Jordan] !rules add Smoking kills
(21:10:51) [+Atmosphere] "Smoking kills" Added as a rule by Jordan.
(21:10:53) [~Jordan] !rules
(21:10:54) [+Atmosphere] Displaying A List Of Rules For #inspircd:
(21:10:54) [+Atmosphere] 1) Respect the ops.
(21:10:54) [+Atmosphere] 2) Don't beg for ops, they will be given to you when we are ready.
(21:10:54) [+Atmosphere] 3) Smoking kills
(21:10:54) [+Atmosphere] End of list. 3 entry(s) displayed.
:) Point proved ? :D
alias loc return $iif($chan,$v1,$nick)
on $*:text:/^!rules\b/Si:*:{
tokenize 32 $strip($1-)
if ($2 == add) && ($nick isop $chan) {
if ($3) {
writeini rules.ini $chan $3-
msg $chan 4" $+ $3- $+ " Added as a rule by $nick $+ .
}
}
if ($2 == del) && ($nick isop $chan) {
if ($3) {
if ($readini(rules.ini,$chan,$3)) {
remini rules.ini $chan $3-
.msg $chan 4Removed $3- from rules list.
}
}
else {
msg $chan 4No such Rule entry.
.notice $nick 4To see the list of Rule List Entries, type !Rules <list>
}
}
if (!$2) && ($ini(rules.ini,$chan,0)) {
.msg $loc 4Displaying A List Of Rules For $loc $+ :
var %a 1, %z $ini(Rules.ini,$chan,0)
while (%a <= %z) {
.msg $loc 04 $+ %a $+ $chr(41) $ini(rules.ini,$chan,%a) $readini(rules.ini,$chan,$ini(rules.ini,$chan,%a))
inc %a
}
.msg $chan 4End of list. %z entry(s) displayed.
}
elseif ($2 == list) && (!$ini(rules.ini,$chan,0)) {
.msg $loc 04Sorry $nick $+ , there are currently no rules for $chan $+ .
}
}
Nac, it now works for !rules
on *:text:*:#thedarkknight:{
if ($strip($1) == !add) { msg $chan 2 add some1 2 your hop,aop, or sop type this /msg chanserv aop #roomname add username }
if ($strip($1) == !pi) { msg $chan Your pissing off the ops I wouldn't do that if I was u becuz you will be kicked and/or banned }
if ($strip($1) == !po) { msg $chan No politics is allowed in my room becuz it causes problems }
if ($strip($1) == !gr) { msg $chan 2 set a greeting 4 your nick type this /ns set greet your greeting goes here }
if ($strip($1) == !wa) { msg $chan No sharing files and/or movies is NOT ALLOWED }
}
or this :)