Code doesnt work

Paste Your code(s) here, and state your problem.

Code doesnt work

Postby Haydd » Tue Jul 02, 2013 4:48 pm

this code : -
alias -l userlimit { return 5 }
on *:TEXT:!request *:#: {

; anti spam
if (!$hget(nospam,channel)) && (!$hget(nospam,$+(nickname,.,$nick))) {
.hadd -mu10 nospam channel 1 | .hadd -mu10 nospam $+(nickname,.,$nick) 1

; checking if $2 is valid
if ($validchan($2)) {
.hadd -m request nickname $nick | .hadd -m request channel $2

.join $2

}
else { .msg $chan Error: please use $1 #channel }
}
}



raw 366:*: {
if ($2 == $hget(request,channel)) {
if ($hget(request,nickname) !isop $2) { .msg $2 Your request have been denied }
elseif ($nick($2,0) < $userlimit) { .msg $2 Your request have been denied }
else {
.msg $2 Your request has been accepted

; for further development, add a command to add a bot to the channel, fx.
; .msg botnick addchannel $2
}
.part $2
}
}
alias -l validchan {
if ($left($1,1) != $chr(35)) { return $false }
if ($chr(44) isin $1) { return $false }
return $true
}



Dint work for me the bot joined the channel but parted it i want a script that it makes the bot join and stay there
Haydd
newb
newb
 
Posts: 5
Joined: Sun Jun 30, 2013 3:26 pm
Authnick: Tamoghna

Return to Mirc Scripting Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron