i'm looking for a onjoin set room gzline for my server for mass bots
menu menubar {
.Set Onjoin Gline
..Set Room Gline:/setrooms $chan
..remrooms:/remrooms $chan
}
or if anybody can fix this to work
would be grealty appricated
think napa did 1 but some how i lost it
on 1:JOIN:#:{
var %i = 1, %r = $$?="reason"
while $sline(#,%i) {
set -u20 %gline. $+ $ifmatch %r
userhost $ifmatch
inc %i
}
}
raw 302::{
var %a = $replace($2,=-,!,=+,!,=-,!,=+,!), %n = $gettok(%a,1,33)
if %gline. [ $+ [ %n ] ] {
gline @ $+ $gettok(%a,2,64) 30d : $+ $ifmatch
echo -at > Glined %n
unset %gline. $+ %n
}
}
You need to fence your code with
```
marks on their own lines.