mIRC Home    About    Download    Register    News    Help

Print Thread
#193674 23/01/08 10:03 PM
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2008
Posts: 12
Hi:

I wan´t 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

Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Why not just block users from sending /ctcps to the channel?

/mode #channel +C


Else:

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


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Originally Posted By: Jigsy
/mode #channel +C

What network is that on?

Funky.. wink

Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Depends on the IRCd.

I know most of them have it.


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
I'm on EFNet.. None of them have it.

Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
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.)


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
OP Offline
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.

Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
OP Offline
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



Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
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

Joined: Oct 2007
Posts: 36
A
Ameglian cow
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 don´t 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.

·´¯`·.¸¸“Jã¢k øf ãll ‡rãÐ꧅„…Mã§têR øf Nønꔸ¸.·´¯`·
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
OP Offline
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 don´t 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!!!!

Joined: Oct 2007
Posts: 36
A
Ameglian cow
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 don´t try to send again.
   .auser CTCPs $nick
   ban -ku60 $chan $nick 2 CTCP SOUND are not allowed. Please, you don´t 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, it´s not a CTCP, It´s 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


·´¯`·.¸¸“Jã¢k øf ãll ‡rãÐ꧅„…Mã§têR øf Nønꔸ¸.·´¯`·
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
OP Offline
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, it´s not a CTCP, It´s 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

Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
OP Offline
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.
Joined: Oct 2007
Posts: 36
A
Ameglian cow
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 Rocío 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.


·´¯`·.¸¸“Jã¢k øf ãll ‡rãÐ꧅„…Mã§têR øf Nønꔸ¸.·´¯`·
Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2008
Posts: 12
Excellent!!!

Thank you very much

Regards

Joined: Jan 2008
Posts: 12
M
Moro Offline OP
Pikka bird
OP Offline
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


Link Copied to Clipboard