You are here: Big Brother Bot ForumCommunity DevelopersPlugin DevelopersUse soundex to match playername
Pages: [1]   Go Down
  Print  
Author Topic: Use soundex to match playername  (Read 97 times) Bookmark and Share
Newbie
*
OS: Linux
Type: Renting Server, no B3
Gameservers: BF3
Posts: 6
Offline Offline
WWW
« on: January 12, 2012, 03:23:13 AM »

I got a question about soundex and how to use it to get the best match for a playername. I know some other languages like java or php very well, but i am pretty new to python. With B3 it is my first touch with python so i am stumbling sometimes around getting everything to work like I want it to.

I developed a plugin which is tracking some player specific actions. Users enter a command (!track <playername>) and the plugin does its job. Everything is working well so far. Now I experienced that users are not always able to type the playername correctly. The result is that the track command doesn't trigger. How can I use "import soundex" in that way that i get the best match in the playerslist for the playername entered with the user command?

Maybe someone can give me an example of how to solve that?

Thanks in advance...
Logged


Tags: soundex playername 
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal