!request #yourchannel

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

!request #yourchannel

Postby capurro » Sun Jul 05, 2009 11:17 am

helloo sp00fed.

!request #yourchannel

ineed ;) thanx
capurro
 

Re: !request #yourchannel

Postby zNigel- » Sun Jul 05, 2009 11:31 am

Wrong section. And more information about what the script should do would be nice.
zNigel-
 

Re: !request #yourchannel

Postby capurro » Sun Jul 05, 2009 12:01 pm

paste code 8-)
capurro
 

Re: !request #yourchannel

Postby zNigel- » Sun Jul 05, 2009 12:12 pm

tbh.. Learn some english, then come back.
zNigel-
 

Re: !request #yourchannel

Postby Cristian » Sun Jul 05, 2009 8:25 pm

well after we got your message translated through some other users, I was able to put this together, if this wasn't what you needed help for, then please express yourself a lot better.

Code: Select all
; !request #channel

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
}
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: !request #yourchannel

Postby PuNkTuReD » Sat Jul 11, 2009 6:03 pm

@Capurro

//msg $active 04,01-[ I Am A Leech Boy 04,01]- One who can't code mIRC on their own so they lach onto a well to do coder's nut sack and leeches off that person's skills as if they were their own.
PuNkTuReD
 


Return to Mirc Scripting Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron