Ban and kick protection are not working fine.

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

Ban and kick protection are not working fine.

Postby StareX » Fri Dec 25, 2009 8:54 am

Hello, My bot has a protection and it's not working as it supposed to work. :S

Code: Select all
on *:kick:#: {
  if ($chan == %service.privchan) { halt }
  if ($knick == $me) {
    putmsg %service.privchan 4ERROR: I've been KICKED from  $+ $chan by  $+ $nick with the reason:  $+ $1- $+ 
  }
  if (%protect_status_ [ $+ [ $chan ] ] == on) {
    if (($readini(userlist.ini,Admins,$address($nick,2))) || ($nick == $me) || ($readini(userlist.ini,$chan,$address($nick,2)) == Owner) || ($nick == Q) || ($readini(userlist.ini,$chan,$address($nick,2)) == Master)) { putmsg Q unbanme $chan | join $chan | halt }
    else { putmsg Q unbanme $chan | join $chan | .timer 1 1 ban -k $nick 2 You are not allowed to KICK on $chan (Service By #StareX) | halt }

  }

  on *:ban:#: {
    if ($chan == %service.privchan) { halt }
    if ($banmask iswm $address($me,5)) {
      putmsg %service.privchan 4ERROR: I've been BANNED from  $+ $chan by  $+ $nick $+ 
    }
    if (%protect_status_ [ $+ [ $chan ] ] == on) {
      if (($readini(userlist.ini,Admins,$address($nick,2))) || ($readini(userlist.ini,$chan,$address($nick,2)) == Owner) || ($nick == $me) || ($nick == Q) || ($readini(userlist.ini,$chan,$address($nick,2)) == Master)) { putmsg Q unbanme $chan | join $chan | halt }
      else { putmsg Q unbanme $chan | join $chan | .timer 1 1 ban -k $nick 2 You are not allowed to BAN on $chan (Service By #StareX) | halt }
    }
  }


It's look like zNigel- service bot that he pasted before but its not really the same.. i just added up there a report script from his script... not big deal, anyway....

When the protection is OFF, and someone in my channel is in the userlist.. kick someone like fishbot.. the bot msg Q to unbanme :P
but the protection is off but the user who kicked fishbot dont get a kick warning...

when im enabling the protection its working great but if the user kick fishbot.. the bot do "Q unbanme" then kick the user :S
but when the user kick Suakenet, it come back to the channel and kick him and thats cool....

Can someone see or fix it for me? :)
It's really important to me.. :P

Thanks,
StareX.
StareX
 

Re: Ban and kick protection are not working fine.

Postby skylord » Fri Dec 25, 2009 9:20 am

delete put

putnotice
putmsg
skylord
 

Re: Ban and kick protection are not working fine.

Postby zNigel- » Fri Dec 25, 2009 9:34 am

Where did you find this?
zNigel-
 

Re: Ban and kick protection are not working fine.

Postby StareX » Fri Dec 25, 2009 11:28 am

@skylord: its put commands script by zNigel- from here :\ anyway what is the connection between what i said? :S

@zNigel-: Well i found it from you :P anyway It does not matter where did I got it.
StareX
 

Re: Ban and kick protection are not working fine.

Postby zNigel- » Fri Dec 25, 2009 11:47 am

StareX wrote:@zNigel-: Well i found it from you :P anyway It does not matter where did I got it.


It does matter. Tell me where ya found it.
zNigel-
 

Re: Ban and kick protection are not working fine.

Postby StareX » Fri Dec 25, 2009 12:31 pm

as i said i found it from your status script :\

but it doesn't matter, im just asking help.
StareX
 

Re: Ban and kick protection are not working fine.

Postby fraguk » Fri Dec 25, 2009 1:14 pm

lol, Well i was wondering how long it would be before it got ripped. Service By #StareX :roll:
If you made it, then you would know how to fix it. ;)
fraguk
 

Re: Ban and kick protection are not working fine.

Postby StareX » Sat Dec 26, 2009 3:02 pm

well, first of all I am not a ripper, secound I scripted it mounths ago. So I forgot scripting and im little noob.

I only said if someone could fix it for me and not to SPAMing the FORUM.
StareX
 

Re: Ban and kick protection are not working fine.

Postby zNigel- » Sat Dec 26, 2009 3:21 pm

StareX wrote:well, first of all I am not a ripper, secound I scripted it mounths ago. So I forgot scripting and im little noob.

I only said if someone could fix it for me and not to SPAMing the FORUM.



You just said that YOU scripted it.
zNigel-
 

Re: Ban and kick protection are not working fine.

Postby StareX » Thu Dec 31, 2009 11:10 am

well znigel, if you don't know to answer...
Don't spam..

cuz this is spamming m8. read rules.

Anyway to the thread? i really need it thanks..
StareX
 

Next

Return to Mirc Scripting Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron