egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

validuser case sensitive

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
juanamores
Master


Joined: 15 Mar 2015
Posts: 317

PostPosted: Thu Aug 20, 2015 10:53 pm    Post subject: validuser case sensitive Reply with quote

I wish that when someone adds a nick as DJ, compare whether the addition nick is a valid user on the bot.
But compare that to be case sensitive.
Example for valid user freud
!djadd freud
OK
For invalid user FrEuD
NOT VALID

This code is NOT case sensitive:
if {![validuser $djnickname]} { putmsg $chan NOT VALID }

How I can do to make the validuser command case sensitive?
_________________
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks Smile
Back to top
View user's profile Send private message
Get_A_Fix
Master


Joined: 07 May 2005
Posts: 206
Location: New Zealand

PostPosted: Sat Aug 22, 2015 6:02 am    Post subject: Reply with quote

it doesn't have to be case sensitive, as long as it can match the users host.

I would try something like
Code:

if {![validuser [nick2hand $djnickname]]} { putmsg $chan "NOT VALID" }


if that doesn't work, then you may have to use lsearch and -nocase switch.
_________________
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
juanamores
Master


Joined: 15 Mar 2015
Posts: 317

PostPosted: Sun Aug 23, 2015 5:10 am    Post subject: Reply with quote

I'll try, thanks.
_________________
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber