mIRC Home    About    Download    Register    News    Help

Print Thread
auto unban #177195 21/05/07 12:28 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
I want chanserv to auto unban me and auto invite me back in the channel I was ban from.

on @!*:BAN:#: {
IF ($banmask iswm $address($me,5)) {
chanserv unban #
}
}

Re: auto unban [Re: Garou] #177197 21/05/07 01:26 PM
Joined: Dec 2002
Posts: 2,021
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,021
Code:
on @!*:BAN:#: {
  if ($banmask iswm $address($me,5)) mode # -b $banmask
}
on !*:KICK:#: {
  if ($knick == $me) {
    chanserv unban #
    .timer 1 5 if ( # !ischan) !join #
  }
}

Last edited by RoCk; 21/05/07 01:31 PM.
Re: auto unban [Re: RoCk] #177198 21/05/07 01:40 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Thx RoCk thats wat I needed smile

Re: auto unban [Re: Garou] #177208 21/05/07 04:33 PM
Joined: May 2007
Posts: 1
B
bamalynn Offline
Mostly harmless
Offline
Mostly harmless
B
Joined: May 2007
Posts: 1
i am bamalynn,apparently i am kicked or banned.i can send but can't get.i need to get voiced again.can anyone help.thanks,i've tried everything i know.

Re: auto unban [Re: bamalynn] #177215 21/05/07 05:17 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
If you can't get into a channel, then there will be a message indicating why you can't get in. This message will be sent to your status window.
Without that message, there's simply too many possibilities to go through them all here.
You say you can send, but not get. This sounds like you're sharing files, and wanting to get files that others are sharing, in which case this sticky applies.
If you can't get because you haven't got voice, then you are neither kicked nor banned from the channel.

The issuance of voice status (or any other level in a channel) is completely at the discretion of the ops of the channel. There is nothing we can do to help you obtain the status that you're wanting if the ops in the channel won't give it to you.

Re: auto unban [Re: RoCk] #177274 22/05/07 04:42 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Can we also add On reconnect and On disconnect to this script?

Re: auto unban [Re: Garou] #177281 22/05/07 05:45 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
ON Reconnect does not exist, and on disconnect only happens when you are disconnected from the network, so sending any messages to the network while disconnected will, return either an error message saying that you're not connected, or will do nothing at all. I'm unable to check which of those two it actually is at this time.

Re: auto unban [Re: RusselB] #177283 22/05/07 06:03 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
I see because when a ban was set on me on disconnect and after I reconnect its not removing the ban and re-joinning!!!

Re: auto unban [Re: Garou] #177288 22/05/07 11:59 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
When you disconnect, the channel information stored in # ($chan) that's used in the script is lost, so when you reconnect, the script doesn't know what channel you were kicked/banned from in order to remove the ban.

Re: auto unban [Re: RusselB] #177289 23/05/07 12:14 AM
Joined: May 2007
Posts: 23
C
chiram Offline
Ameglian cow
Offline
Ameglian cow
C
Joined: May 2007
Posts: 23
Code:
raw 474:*:{ if (+b isin $6) { cs unban $2 $me | cs invite $2 $me | .timer 1 1 join $2 } }


will try to get you unbanned anytime you try to join a channel your banned in