Jump to content

Wondering Why This Won't Work Anymore.


Cyanyde

Recommended Posts

I used this for years in MSN and Buzzen. It worked just fine. Now, it won't work at all.

 

#spamkick On
alias kicknick {
  if (-* !iswm $1) || ($len($1) > 3) halt
  if (b isin $1) access $2 add deny $address($3,2) $4 : $+ $5-
  if (k isin $1) kick $2 $3 $iif(b isin $1,$5-,$4-)
}
On *:TEXT:*:#: {
  .if ($1- == www) kicknick -b $chan $nick Are you stupid! $nick
  .if ($1- == http) kicknick -b $chan $nick Are you stupid! $nick
}

Can any one please lend a hand on this? It's for the new buzzen chat.

I want to kick spammers who post links in the room.

Edited by Cyanyde
Link to comment
Share on other sites

Ok. I only know how to strip the old VSIXc font. I do not know how to do that in Buzzen. Sorry to be acting like a noob.

Link to comment
Share on other sites

on *:TEXT:*:#: {
tokenize 32 $strip($regsubex($1-, /\[(?:style\x20.*?|/style)\]/gi,$null))
;rest of stuff
}

but if you are using a socket conn you could strip it out in the socket

Link to comment
Share on other sites

I'm using the Biohazard script for room prots, it uses a base connection. As I am sure you know error. I am trying too add a few of my own prots to this script ( no I a not trying to ripp ). I will try and place the code you posted into my smapkick code. See if it works. Ty for the hewlp error.

Link to comment
Share on other sites

  • 4 weeks later...

I'm using the Biohazard script for room prots, it uses a base connection. As I am sure you know error. I am trying too add a few of my own prots to this script ( no I a not trying to ripp ). I will try and place the code you posted into my smapkick code. See if it works. Ty for the hewlp error.

 

Try this and edit as you need More words ect... can be added , hope this helps or give you some ideas

 

on *:text:*:#: { 
  if ($me !isop $chan) halt
  if ($istok($1-,www.,32) == $true)) || ($istok($1-,http,32) == $true)) { 
    if ($nick isowner $chan) goto test
    if ($nick isop $chan) goto test
    if ($readini(protection.ini, $nick, swear) != true) { 
      .msg $nick ( $nick ) Please do not Place web addys on $chan $+ ! U Will Be Ban next time
      .msg $chan Web Addys Not Allowed $nick Plz Stop With It!
      writeini protection.ini $nick swear true 
      .timer 1 30 /remini protection.ini $nick swear 
      halt 
    } 
    else { 
      auser swear $address($nick,1) :swearing $nick $adate  $time 
      access # add deny *! $+ $$ial($nick $+ *,1).addr 15 $Nick swear
      kick # $nick You was Told Web Addys Not Allowed! ban 15 min | halt
    } 
    :test {
    .msg $nick ( $nick ) we need to set the example plz $nick }
  } 
}

 

to add new word || ($istok($1-,Newword,32) == $true))

Example

if ($istok($1-,www.,32) == $true)) || || ($istok($1-,http,32) == $true)) || ($istok($1-,NEWWORD,32) == $true)){

 

 

Also be sure to make a file calles protection.ini to read and write to

Place code in remotes New

Should work with any connetion you are usen

Good luck

Edited by pony
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...