Skip to content
General IRCd

Wondering Why This Won't Work Anymore.

A TG007 community discussion started by Cyanyde.

Discussion 7 posts
Page 1 of 1
Open
Topic #14986 · 7 published posts · 2,889 views

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 Apr 7, 2011 3:16 AM by Cyanyde

most likely your problem is you aren't stripping out the buzzen font codes

Get information about ircWx here

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.

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

Get information about ircWx here

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.

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 Apr 30, 2011 7:54 PM by pony

PONY

The grammar in those kick messages is shockingly bad.