Unban script help
 
Post new topic   Reply to topic    Hawkee.com Forum Index -> mIRC Snippet Requests
 
kggr001  -  Sat Jun 30, 2012 9:29 am Reply with quote

Quote

on *:TEXT:!unban *:#: {
if ($nick isop #) {
if ($fulladdress isban #) {
/msg #  $nick , unbans $2 !!
cs unban # $2
}
else {
/msg # $2 is already unbanned.
} } }


How can i get $2 is already unbanned to work?
Jethro  -  Sat Jun 30, 2012 9:56 am Reply with quote
Use this:

Code

 
kggr001  -  Sat Jun 30, 2012 10:16 am Reply with quote
When someone is banned, and i try to unban him it says $2 is already unbanned ?
Jethro  -  Sat Jun 30, 2012 10:55 am Reply with quote
Yes that's what it's supposed to say...when a nickname is already unbanned.
kggr001  -  Sat Jun 30, 2012 10:59 am Reply with quote
But the nick isn't already unbanned.
When i banned someone it doesn't unban the person, instead of unbanning it says $2 is already unbanned ?.
kggr001  -  Sat Jun 30, 2012 11:09 am Reply with quote
I just noticed that this script work on !ban.
It doesn't work if i !kb somone.
How can i get it 2 work on !kb?
Jethro  -  Sat Jun 30, 2012 11:23 am Reply with quote

kggr001 wrote

I just noticed that this script work on !ban.
It doesn't work if i !kb somone.
How can i get it 2 work on !kb?

Code

 
kggr001  -  Sat Jun 30, 2012 11:34 am Reply with quote

Quote

on $@*:text:/^!unban( |$)/iS:#:{
if ($nick isop #) {
if ($ial($2) isban #) {
.msg # $nick $+ , unbans $2!!
unban -k # $2 2 ban reason
}
else {
.msg # $2 is already unbanned.
}
}
}
}


Something like this?

I did this and it still doesn't unban the person.
It keep saying $2 is already unbanned, while $2 is not unbanned.
Jethro  -  Sat Jun 30, 2012 5:50 pm Reply with quote
Try this:

Code

 
kggr001  -  Sun Jul 01, 2012 1:46 am Reply with quote
It still saying $2 is already unbanned!, while $2 is not unbanned. Confused
Display posts from previous:   
Post new topic   Reply to topic    Hawkee.com Forum Index -> mIRC Snippet Requests All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.