This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Get nickname by uhost

Help for those learning Tcl or writing their own scripts.
Post Reply
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Get nickname by uhost

Post by Elfriede »

Good Afternoon :)

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 :)
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Post by Elfriede »

Its a mysql
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
User avatar
Get_A_Fix
Master
Posts: 206
Joined: Sat May 07, 2005 6:11 pm
Location: New Zealand

Post by Get_A_Fix »

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.
Post Reply