PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: mmx on 08 December, 2003, 23:26:27

Title: username block?
Post by: mmx on 08 December, 2003, 23:26:27
how would u block people with say _search or [HUN] in their names from entering you hub?

i like to use umm phattys NemoX bot.

thankyou
Title:
Post by: mmx on 08 December, 2003, 23:34:57
also is it possible to use smileys? in dc.

like let users post smilies.

thx.
Title:
Post by: dvxjunkie on 09 December, 2003, 00:08:44
try this one I use it religously


--// Lamer bot by ?V?J??K??, case insensitivity special thanks to amutex! - looks for nicks in list, and disconnects them on entry reporting nick and ip address to specific operator in his main chat window. put your nick in parenthesies where it says dest to be notifyed. it will also find the nick even if they add somthing to end of nick and try relogging. so genisis2 for example would still get disconnected.

botName = "Lamerbot"

--// Disconnect the following users ip on entry
forbiddenWords = {"bad_boy", "genisis", "n.y.c.p.i.m.p", "birdy"}

dest="?V?J??K??"
function Main()
frmHub:RegBot(botName)
 
end

--// This function is fired when a new user finishes the login
function NewUserConnected(curUser)
for key,checkWord in forbiddenWords do
if strfind(curUser.sMyInfoString, checkWord, 1, 1) then

curUser:Disconnect()


end
end
end
Title:
Post by: mmx on 09 December, 2003, 09:17:40
yeah thats kool,thx. is it possible to have smilies?
Title:
Post by: plop on 09 December, 2003, 10:52:02
QuoteOriginally posted by mmx
yeah thats kool,thx. is it possible to have smilies?
that you have 2 ask on the dc++ forum or start using dcpro/dcgui.

plop
Title:
Post by: mmx on 09 December, 2003, 11:25:14
dvx - i don't seem to be able to get that script to run right.
Title:
Post by: mmx on 09 December, 2003, 12:31:39
i got it to work it was my fault i missed a " round one of the words

cheers! works great.

if it could tell u when someone get kicked that would help.
Title:
Post by: IceCoder on 09 December, 2003, 13:57:48
Good.. i guess
Title:
Post by: SaintSinner on 09 December, 2003, 14:22:46
yup i guess it is too