mIRC Home    About    Download    Register    News    Help

Print Thread
#176762 13/05/07 11:59 PM
Joined: Jul 2006
Posts: 248
B
bwuser Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Jul 2006
Posts: 248
hello

in this script

Code:
on *:ban:#: if ( $banmask iswm $address($me,5) ) part $chan


can I add

1) send a prv msg to the person that bans me
2) say something when parting the channel

thanks

PS: whats more general? kick or ban? how do I include all possible situations?

Last edited by bwuser; 14/05/07 12:10 AM.
bwuser #176763 14/05/07 12:13 AM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
sometimes they ban you *because* you are sending them private messages smile

BAN may not always mean you will then be kicked from channel. BAN is sometimes used as a way to mute an abusive nick, since banned nicks cannot speak in channel.

I'm not seeing the advantage to /part from a channel as soon as you are banned, especially if it prevents you from seeing the "reason" in their kick message.

bwuser #176765 14/05/07 12:21 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
your on ban code will handle bans. To handle kicks, you'll need an ON KICK event.
If you are kicked, then a reason has to be given, however, bans don't have to include a reason.
Some networks support a message in the part command after the channel specification.

bwuser #176770 14/05/07 01:27 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Note also that the banmask and address won't match
  • a ban on your IP if you have a resolved address
  • a CIDR ban.

bwuser #176787 14/05/07 04:10 AM
Joined: Mar 2006
Posts: 395
T
Pan-dimensional mouse
Offline
Pan-dimensional mouse
T
Joined: Mar 2006
Posts: 395
To answer your question:

Code:
on *:ban:#: if ($banmask iswm $address($me,5)) {
notice $nick I wish you woudn't do that!
msg $chan See ya's all later.
part $chan
}


(Presuming the network lets you send messages to channels you are banned on, The privmsg will work)


[02:16] * Titanic has quit IRC (Excess Flood)
The_JD #176800 14/05/07 06:18 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Actually all he needs for the ban on almost 95% of the networks is to be voiced (+) or higher. To send the message to channel while he is still on it.

Else if mode t is not present in the channel modes of the channel then he can send a message to the channel without exactly being in the channel itself.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #176801 14/05/07 06:52 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I think you mean mode n
n is for no outside messages
t is for Only opers can change topic.

RusselB #176804 14/05/07 08:52 AM
Joined: Jul 2006
Posts: 248
B
bwuser Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Jul 2006
Posts: 248
thanks

Code:
part $chan somemessage
is correct?

bwuser #176820 14/05/07 05:14 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: bwuser
thanks

Code:
part $chan somemessage
is correct?


Well you can't part with a parting message it won't show I believe but you can quit the network with a quit message.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
bwuser #176823 14/05/07 05:50 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Some servers allow a part message, all you can do is try.


Link Copied to Clipboard