mIRC Home    About    Download    Register    News    Help

Print Thread
How to kick when CTCP ??? #193674
23/01/08 10:03 PM
23/01/08 10:03 PM
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
Moro  Offline OP
Pikka bird
M

Joined: Jan 2008
Posts: 12
Hi:

I want to auto kick with my bot some users that uses CTCP to show their music in current chat room.
This looks some like:
Quote:
Guest0698(ircuser@190.30.51.ba979=) ctcp SOUND 09_melanie_c_-_first_day_of_my_life.mp3

Some help about how to do a remote??

Regards

Re: How to kick when CTCP ??? [Re: Moro] #193676
23/01/08 10:43 PM
23/01/08 10:43 PM
Joined: Nov 2004
Posts: 799
I live inside your computer. S...
Jigsy Offline
Hoopy frood
Jigsy  Offline
Hoopy frood

Joined: Nov 2004
Posts: 799
I live inside your computer. S...
Why not just block users from sending /ctcps to the channel?

/mode #channel +C


Else:

Code:
ctcp @*:#:{ kick $chan $nick NO CTCPS! }


This signature is currently out of order. We apologize for the inconvenience.
Re: How to kick when CTCP ??? [Re: Jigsy] #193679
23/01/08 11:28 PM
23/01/08 11:28 PM
Joined: Dec 2002
Posts: 503
Melbourne, Australia
B
Bekar Offline
Fjord artisan
Bekar  Offline
Fjord artisan
B

Joined: Dec 2002
Posts: 503
Melbourne, Australia
Originally Posted By: Jigsy
/mode #channel +C

What network is that on?

Funky.. wink

Re: How to kick when CTCP ??? [Re: Bekar] #193680
23/01/08 11:32 PM
23/01/08 11:32 PM
Joined: Nov 2004
Posts: 799
I live inside your computer. S...
Jigsy Offline
Hoopy frood
Jigsy  Offline
Hoopy frood

Joined: Nov 2004
Posts: 799
I live inside your computer. S...
Depends on the IRCd.

I know most of them have it.


This signature is currently out of order. We apologize for the inconvenience.
Re: How to kick when CTCP ??? [Re: Jigsy] #193681
23/01/08 11:33 PM
23/01/08 11:33 PM
Joined: Dec 2002
Posts: 503
Melbourne, Australia
B
Bekar Offline
Fjord artisan
Bekar  Offline
Fjord artisan
B

Joined: Dec 2002
Posts: 503
Melbourne, Australia
I'm on EFNet.. None of them have it.

Re: How to kick when CTCP ??? [Re: Bekar] #193683
23/01/08 11:35 PM
23/01/08 11:35 PM
Joined: Nov 2004
Posts: 799
I live inside your computer. S...
Jigsy Offline
Hoopy frood
Jigsy  Offline
Hoopy frood

Joined: Nov 2004
Posts: 799
I live inside your computer. S...
Quote:
-
Pyro.US.AfterNET.Org u2.10.11.07+Nefarious(1.1.0) adfghiknoswxBIRWX abcehiklmnoprstvzCLMNOQSTZ behklov
-
MythosGuru.TX.US.ForTheGamers.Org InspIRCd-1.1.15+Wensleydale BGHIRShinoswx CFGIJLMNOPRSTVbcefghijklmnopstuvz FIJLbefghjklov
-
underworld2.no.quakenet.org u2.10.12.10+snircd(1.3.4) dioswkgxRXInP biklmnopstvrDcCNuMT bklov
-
Etc.


EFnet doesn't support it. (Here.)


This signature is currently out of order. We apologize for the inconvenience.
Re: How to kick when CTCP ??? [Re: Jigsy] #193686
24/01/08 12:08 AM
24/01/08 12:08 AM
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
Moro  Offline OP
Pikka bird
M

Joined: Jan 2008
Posts: 12
Originally Posted By: Jigsy
Why not just block users from sending /ctcps to the channel?

/mode #channel +C


Else:

Code:
ctcp @*:#:{ kick $chan $nick NO CTCPS! }


Just because it is a CROOM and mode +C is an unknown mode for it.
I will try with your code, and I want to kick ban in a second try to send ctcp to the channel.

Re: How to kick when CTCP ??? [Re: Moro] #193690
24/01/08 01:53 AM
24/01/08 01:53 AM
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
Moro  Offline OP
Pikka bird
M

Joined: Jan 2008
Posts: 12
Nop!!!
I tryed ctcp @*:#:{ kick $chan $nick NO CTCPS! } on a remote and nothing happend after a user send a CTCP :S



Re: How to kick when CTCP ??? [Re: Moro] #193694
24/01/08 02:40 AM
24/01/08 02:40 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
genius_at_work  Offline
Hoopy frood
G

Joined: Oct 2005
Posts: 1,741
Try this code:

Code:

ctcp *:*:#:{ 
  if ($nick isop $target) return 
  ban -ku20 $target $nick 2 CTCPs are not allowed
}



This code allows @ops to send CTCPs, but kickbans everyone else.

-genius_at_work

Re: How to kick when CTCP ??? [Re: Moro] #193700
24/01/08 05:46 AM
24/01/08 05:46 AM
Joined: Oct 2007
Posts: 36
A
asmodeo Offline
Ameglian cow
asmodeo  Offline
Ameglian cow
A

Joined: Oct 2007
Posts: 36
Originally Posted By: Moro

I will try with your code, and I want to kick ban in a second try to send ctcp to the channel.


Hi all!
Hi Moro.

Try with this code:

Code:
CTCP *:*SOUND*:#myroom:{
  if $nick isreg # {
     .notice $nick CTCP SOUND are not allowed. Please, you dont try to send again.
     .auser CTCPs $nick
     }
   }
CTCP CTCPs:*:#myroom:{
    ban -ku300 $chan $nick 2 CTCP SOUND are not allowed.
    .ruser CTCPs $nick
}


I think that this code work, I hope it.

Bye smile

Last edited by asmodeo; 24/01/08 06:35 AM.

`.Jk f ll r꧅MtR f Nnꔸ.`
Re: How to kick when CTCP ??? [Re: asmodeo] #193713
24/01/08 03:13 PM
24/01/08 03:13 PM
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
Moro  Offline OP
Pikka bird
M

Joined: Jan 2008
Posts: 12
Well, the next code works fine!!!
Quote:
ctcp *:*:#:{
if ($nick isop $target) return
ban -ku20 $target $nick 2 CTCPs are not allowed
}

It will be better if first kick/ban and notice for 60 seconds and in the second ctcp to the channel kick/ban permanent.

But the next one code only send notices on first instance and after do nothing
Quote:
CTCP *:*SOUND*:#myroom:{
if $nick isreg # {
.notice $nick CTCP SOUND are not allowed. Please, you dont try to send again.
.auser CTCPs $nick
}
}
CTCP CTCPs:*:#myroom:{
ban -ku300 $chan $nick 2 CTCP SOUND are not allowed.
.ruser CTCPs $nick
}


But I still having a problem. This command only kick people who ctcp their mp3 but do nothing about people that just send a banner to the room.
Can I add some command to kick and after ban that announce?


Regards!!!!

Re: How to kick when CTCP ??? [Re: Moro] #193730
24/01/08 05:57 PM
24/01/08 05:57 PM
Joined: Oct 2007
Posts: 36
A
asmodeo Offline
Ameglian cow
asmodeo  Offline
Ameglian cow
A

Joined: Oct 2007
Posts: 36
Hi again Moro.
Originally Posted By: Moro

It will be better if first kick/ban and notice for 60 seconds and in the second ctcp to the channel kick/ban permanent.

This CODE is OK, Copy & paste in your Remote.
Code:
CTCP CTCPs:*:#myroom:{
   ban -k $chan $nick 2 CTCP are not allowed! I told you so.
  .ruser CTCPs $nick
}
CTCP 1:*SOUND*:#myroom:{
   if $nick isreg # {
   .notice $nick CTCP SOUND are not allowed. Please, you dont try to send again.
   .auser CTCPs $nick
   ban -ku60 $chan $nick 2 CTCP SOUND are not allowed. Please, you dont try to send again.
  }
}


Originally Posted By: Moro

But I still having a problem. This command only kick people who ctcp their mp3 but do nothing about people that just send a banner to the room.
Can I add some command to kick and after ban that announce?

When one user send a banner, its not a CTCP, Its a /me "banner" or /say "banner" command. You can try with Code, for example:

Code:
 ON BANNERs:ACTION:*MP3*:#myroom:{
    ban -k $chan $nick 2 BANNER are not allowed! I told you so.
   .ruser BANNERs $nick
}
 ON 1:ACTION:*MP3*:#myroom:{
   if $nick isreg # {
   .notice $nick BANNER are not allowed. Please, you don´t try to send again.
   .auser BANNERs $nick
   ban -ku60 $chan $nick 2 BANNER are not allowed. Please, you don´t try to send again.
  }
}


Regards smile


`.Jk f ll r꧅MtR f Nnꔸ.`
Re: How to kick when CTCP ??? [Re: asmodeo] #193749
25/01/08 01:30 AM
25/01/08 01:30 AM
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
Moro  Offline OP
Pikka bird
M

Joined: Jan 2008
Posts: 12
Well thanks, I tryed your code but:

First part works fine with CTCPs.

The second one, part referred to BANNER didn t work

Quote:
When one user send a banner, its not a CTCP, Its a /me "banner" or /say "banner" command. You can try with Code, for example:

Code:
ON BANNERs:ACTION:*MP3*:#myroom:{
ban -k $chan $nick 2 BANNER are not allowed! I told you so.
.ruser BANNERs $nick
}
ON 1:ACTION:*MP3*:#myroom:{
if $nick isreg # {
.notice $nick BANNER are not allowed. Please, you don´t try to send again.
.auser BANNERs $nick
ban -ku60 $chan $nick 2 BANNER are not allowed. Please, you don´t try to send again.
}
}


Regards

Re: How to kick when CTCP ??? [Re: Moro] #193766
25/01/08 11:04 AM
25/01/08 11:04 AM
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
Moro  Offline OP
Pikka bird
M

Joined: Jan 2008
Posts: 12
Asmodeo thank you very much.

I was looking on the script and I think that the problems is that are many ways to show mp3 to the room.
/MSG
/AMSG
/ME
/AME
And the option No banner
May be a reason to don t work???

Regards

Last edited by Moro; 25/01/08 11:05 AM.
Re: How to kick when CTCP ??? [Re: Moro] #193771
25/01/08 02:39 PM
25/01/08 02:39 PM
Joined: Oct 2007
Posts: 36
A
asmodeo Offline
Ameglian cow
asmodeo  Offline
Ameglian cow
A

Joined: Oct 2007
Posts: 36
Hi Moro

The BANNERs send with "/ame - /me" or "/amsg - /msg" There are 2 differents events.
[08:33] <SweeT> ...OOooOO`.MP3.Because of you ...Kelly Clarkson ...Breakaway..
The first event "/amsg or /msg" are ACTIONs event.

[02:31] * MisiN MP3 , La Gata Bajo Raining Roco Durcal-RD Cd-2 (3.4MB 128Kbps 44.1Khz 3m 40s) ""o==o-
the second, "/ame or /me" are TEXTs event.

Imagine that BANNER is a MP3 SOUND.
Example:

Code:
  ON BANNERs:TEXT:*MP3*:#myroom:{
    ban -k $chan $nick 2 BANNER MP3 are not allowed! I told you so.
   .ruser BANNERs $nick
  }
  ON BANNERs:ACTION:*MP3*:#myroom:{
    ban -k $chan $nick 2 BANNER MP3 are not allowed! I told you so.
   .ruser BANNERs $nick
  }
;================================
ON 1:TEXT:*MP3*:#myroom:{
  if $nick isreg # {
  .notice $nick BANNER are not allowed. Please, you don´t try to send again.
  .auser BANNERs $nick
  ban -ku60 $chan $nick 2 BANNER MP3 are not allowed. Please, you don´t try to send again.
  }
}
ON 1:ACTION:*MP3*:#myroom:{
  if $nick isreg # {
  .notice $nick BANNER are not allowed. Please, you don´t try to send again.
  .auser BANNERs $nick
  ban -ku60 $chan $nick 2 BANNER MP3 are not allowed. Please, you don´t try to send again.
  }
}


But this is only if the user send a MP3 Banner. You can use The same with: WAV of MIDI for example.


`.Jk f ll r꧅MtR f Nnꔸ.`
Re: How to kick when CTCP ??? [Re: asmodeo] #193828
26/01/08 03:06 PM
26/01/08 03:06 PM
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
Moro  Offline OP
Pikka bird
M

Joined: Jan 2008
Posts: 12
Excellent!!!

Thank you very much

Regards

Re: How to kick when CTCP ??? [Re: Moro] #193939
27/01/08 03:51 PM
27/01/08 03:51 PM
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
Moro  Offline OP
Pikka bird
M

Joined: Jan 2008
Posts: 12
Oops asmodeo!!.
This code does not detect that:
Quote:

* nick1 Mp [ la locura automatica177 - la secta feat eddie dee] (4:9) J-u-e-r-g-u-i-s-t-a-z
nick1(jZcript2.3@200.115.220.SF92=) ctcp SOUND la secta feat eddie dee - la locura automatica177.mp3

I add, as you said, one code for "Mp" and other for "J-u-e-r-g-u-i-s-t-a-z" but the script detect nothing.

Regards