[RELEASE]Python Chat Anti-SPAM Function

10/31/2013 17:52 AG.Simpsey#1
:D
10/31/2013 17:57 Noa_#2
kann das jmd testen?
10/31/2013 18:08 miguelmig#3
I like it but I would call it more as of a Anti-Flood System.
And instead of doing that many 'if statements' I would do it like this:
PHP Code:
if text in ("(b1)""(b2)""(b3)""(b4)""(b5)""(b6)""(b7)"):
        return 
OR

PHP Code:
    not_allowed = [ "(b1)""(b2)""(b3)""(b4)""(b5)""(b6)""(b7)" ]
    if 
text in not_allowed:
        return 
10/31/2013 18:11 AG.Simpsey#4
Quote:
Originally Posted by miguelmig View Post
I like it but I would call it more as of a Anti-Flood System.
And instead of doing that many 'if statements' I would do it like this:
PHP Code:
if text in ("(b1)""(b2)""(b3)""(b4)""(b5)""(b6)""(b7)"):
        return 
OR

PHP Code:
    not_allowed = [ "(b1)""(b2)""(b3)""(b4)""(b5)""(b6)""(b7)" ]
    if 
text in not_allowed:
        return 

Miguelmig that what u wrote came with the original client, it has to do with the emoticons nothing to do with the anti spam and yes it is an anti spam not anti flood lool
and btw a dictionary u dont need to globalize it. Before going to reclaim, test it boy!
10/31/2013 18:16 miguelmig#5
Quote:
Originally Posted by AG.Simpsey View Post
Miguelmig that what u wrote came with the original client, it has to do with the emoticons nothing to do with the anti spam and yes it is an anti spam not anti flood lool
Hm, I didn't say otherwise...
I just said that you can simplify it by removing all those 'if statements'.
10/31/2013 18:18 AG.Simpsey#6
Quote:
Originally Posted by miguelmig View Post
Hm, I didn't say otherwise...
I just said that you can simplify it by removing all those 'if statements'.
but yeah you're right it can be done with a list ;)
10/31/2013 19:13 Prince43™#7
Komisch das selbe script habe ich auch im Hardcore RELOADED client gesehen.... hm


King Regards

Prince43™
11/01/2013 17:19 «Cassandra»#8
An sich ist die "Idee" ganz gut.. Ob sie allerdings von dir steht ist die Frage !!
11/01/2013 19:11 lomerl#9
What?

Post delete? :S
11/01/2013 19:37 kstmr#10
i hate when they do this
11/02/2013 02:26 Xijezu#11
#closed