mIRC Home    About    Download    Register    News    Help

Topic Options
#193674 - 23/01/08 10:03 PM How to kick when CTCP ???
Moro Offline
Pikka bird

Registered: 23/01/08
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

Top
#193676 - 23/01/08 10:43 PM Re: How to kick when CTCP ??? [Re: Moro]
Jigsy Offline
Hoopy frood

Registered: 18/11/04
Posts: 799
Loc: 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.

Top
#193679 - 23/01/08 11:28 PM Re: How to kick when CTCP ??? [Re: Jigsy]
Bekar Offline
Fjord artisan

Registered: 11/12/02
Posts: 503
Loc: Melbourne, Australia
Originally Posted By: Jigsy
/mode #channel +C

What network is that on?

Funky.. wink

Top
#193680 - 23/01/08 11:32 PM Re: How to kick when CTCP ??? [Re: Bekar]
Jigsy Offline
Hoopy frood

Registered: 18/11/04
Posts: 799
Loc: 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.

Top
#193681 - 23/01/08 11:33 PM Re: How to kick when CTCP ??? [Re: Jigsy]
Bekar Offline
Fjord artisan

Registered: 11/12/02
Posts: 503
Loc: Melbourne, Australia
I'm on EFNet.. None of them have it.

Top
#193683 - 23/01/08 11:35 PM Re: How to kick when CTCP ??? [Re: Bekar]
Jigsy Offline
Hoopy frood

Registered: 18/11/04
Posts: 799
Loc: 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.

Top
#193686 - 24/01/08 12:08 AM Re: How to kick when CTCP ??? [Re: Jigsy]
Moro Offline
Pikka bird

Registered: 23/01/08
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.

Top
#193690 - 24/01/08 01:53 AM Re: How to kick when CTCP ??? [Re: Moro]
Moro Offline
Pikka bird

Registered: 23/01/08
Posts: 12
Nop!!!
I tryed ctcp @*:#:{ kick $chan $nick NO CTCPS! } on a remote and nothing happend after a user send a CTCP :S



Top
#193694 - 24/01/08 02:40 AM Re: How to kick when CTCP ??? [Re: Moro]
genius_at_work Offline
Hoopy frood

Registered: 08/10/05
Posts: 1741
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

Top
#193700 - 24/01/08 05:46 AM Re: How to kick when CTCP ??? [Re: Moro]
asmodeo Offline
Ameglian cow

Registered: 13/10/07
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


Edited by asmodeo (24/01/08 06:35 AM)
_________________________
`.Jk f ll r꧅MtR f Nnꔸ.`

Top
#193713 - 24/01/08 03:13 PM Re: How to kick when CTCP ??? [Re: asmodeo]
Moro Offline
Pikka bird

Registered: 23/01/08
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!!!!

Top
#193730 - 24/01/08 05:57 PM Re: How to kick when CTCP ??? [Re: Moro]
asmodeo Offline
Ameglian cow

Registered: 13/10/07
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ꔸ.`

Top
#193749 - 25/01/08 01:30 AM Re: How to kick when CTCP ??? [Re: asmodeo]
Moro Offline
Pikka bird

Registered: 23/01/08
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

Top
#193766 - 25/01/08 11:04 AM Re: How to kick when CTCP ??? [Re: Moro]
Moro Offline
Pikka bird

Registered: 23/01/08
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


Edited by Moro (25/01/08 11:05 AM)

Top
#193771 - 25/01/08 02:39 PM Re: How to kick when CTCP ??? [Re: Moro]
asmodeo Offline
Ameglian cow

Registered: 13/10/07
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ꔸ.`

Top
#193828 - 26/01/08 03:06 PM Re: How to kick when CTCP ??? [Re: asmodeo]
Moro Offline
Pikka bird

Registered: 23/01/08
Posts: 12
Excellent!!!

Thank you very much

Regards

Top
#193939 - 27/01/08 03:51 PM Re: How to kick when CTCP ??? [Re: Moro]
Moro Offline
Pikka bird

Registered: 23/01/08
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

Top