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 

Get nickname by uhost

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


Joined: 07 Aug 2007
Posts: 67

PostPosted: Thu Nov 20, 2014 11:07 am    Post subject: Get nickname by uhost Reply with quote

Good Afternoon Smile

i have a small database with uhosts saved.

Example: My@secret.vhost

Now i want to check, if one or more Users added to my database by host are currently on a channel. If, id like to get their nicknames by uhost and send them a message.

Hope, someone can help

Thanks Smile
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Nov 20, 2014 2:56 pm    Post subject: Reply with quote

In what format is the database stored? Flat file, sqlite, mysql server?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Elfriede
Halfop


Joined: 07 Aug 2007
Posts: 67

PostPosted: Fri Nov 21, 2014 2:36 am    Post subject: Reply with quote

Its a mysql
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon Nov 24, 2014 5:47 am    Post subject: Reply with quote

What's the structure of the database you want to search? In your example the host you want to look for is secret.vhost?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Get_A_Fix
Master


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

PostPosted: Mon Nov 24, 2014 9:00 pm    Post subject: Reply with quote

One of the questions seems to be; how is this being triggered?

If you are using $uhost for the host@mask.etc then you should be able to use $nick to get the Nickname. You may want to have a read of the tcl-commands.doc file, it's inside your eggdrop/doc directory.
_________________
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
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