PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: nEgativE on 02 February, 2004, 07:56:38

Title: Help ! oDC TAG
Post by: nEgativE on 02 February, 2004, 07:56:38
I need help in a line here.



function NewUserConnected(user)

if (not strfind(user.sMyInfoString,"<++")) or (not strfind(user.sMyInfoString,"if (sYNDcPlusOnly == "1") then
SendToNick(user.sName, "<" ..sBot.."> Voc? est? possivelmente a usar uma vers?o do DC++ n?o reconhecida ou n?o autorizada, pegue uma vers?o oficial do cliente DC++, --> http://dcplusplus.sourceforge.net")
SendToNick(user.sName, "<" ..sBot.."> Desconectado..")
if (sYNRedirects == "0") then
user:Disconnect()
end



I think this is not working.. Heh. could u help me ? these lines are from robocop, just want 2 include the new oDC TAG there..

TkS
Title:
Post by: Event_Horizon on 02 February, 2004, 11:10:21
don't try to modify robocop by your own, ask optimus to add the new oDC tag. Maybe he's already finished with it... search for the latest version - currently v6.0 I think
Title:
Post by: Optimus on 02 February, 2004, 13:30:09
I think it's like this...

function NewUserConnected(user)

if not (strfind(user.sMyInfoString,"<++")) or (strfind(user.sMyInfoString,"
Title:
Post by: pHaTTy on 02 February, 2004, 14:17:58
hmm im not to sure but yep i think maybe optimus right something like

if not (strfind(user.sMyInfoString,"<++")) or (strfind(user.sMyInfoString,"
Title:
Post by: nEgativE on 02 February, 2004, 14:36:59
I'll give it a shot when i get home, Thank U :)

--> no working 4 me :(
Title: oDC TAG
Post by: Yokozuna on 04 February, 2004, 00:42:19
Hi,

please try this:

Quoteif not (strfind(user.sMyInfoString,"<++") or strfind(user.sMyInfoString,"
(only difference is a pair of brackets around the two terms)

Works for me  :]

Hope it helps you with your script.


Yokozuna
Title:
Post by: nEgativE on 04 February, 2004, 00:57:30
QuoteOriginally posted by Yokozuna
Hi,

please try this:

Quoteif not (strfind(user.sMyInfoString,"<++") or strfind(user.sMyInfoString,"
(only difference is a pair of brackets around the two terms)

Works for me  :]

Hope it helps you with your script.


Yokozuna

Wee :) worked fine.. TkS Yokozuna, TkS All