PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: mlinsgomes on 03 February, 2005, 01:06:47

Title: Help with my bot
Post by: mlinsgomes on 03 February, 2005, 01:06:47
Hello,
how can i block a user by your email address?
I try create a bot with this restriction, but i can't find the correct variable for email, in myinfo All....
Someone can help me?
Thanks!
Mlinsgomes
Title:
Post by: bastya_elvtars on 03 February, 2005, 01:14:01
QuoteOriginally posted by mlinsgomes
Hello,
how can i block a user by your email address?
I try create a bot with this restriction, but i can't find the correct variable for email, in myinfo All....
Someone can help me?
Thanks!
Mlinsgomes

Try applying patternmatch to it. Some $ stuff, cannot recall it now, please post me a myinfo string as i have no access to DC now.
Title:
Post by: mlinsgomes on 03 February, 2005, 01:53:28
the string is:
$MyINFO $ALL Nickname <++ V:0.668,M:A,H:1/0/1,S:3>$ $DSL$email@mail.com$10802700198$
I know about this string that nickname is a var called user.sName, but tag, conetion type, email and share, i don't...
Title:
Post by: ??????Hawk?????? on 03 February, 2005, 02:19:05
hi m8

this may help

if (strsub(data,1,7) == "$MyINFO") then
for a ,b in BlockedEmailsTable do

if strfind(data,a) then

    Email Matches Table Entry ( do your stuff here )

end
end
end


??????Hawk??????