Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Checking nickname registration status: Best approach?  (Read 2917 times)

0 Members and 1 Guest are viewing this topic.

Aikar

  • Anope User
  • Offline Offline
  • Posts: 13
Checking nickname registration status: Best approach?
« on: August 17, 2008, 09:57:49 AM »

Hello, I'm currently using the misc_sqlcmd module to register users from the site, but my last main issue is detecting if a nickname is registered or not.

At first i was querying my Denora user table and checking for Y on +r, but then i noticed if user logs out of room unauthed that its left to N.

Then theres the issue of the mysql tables only updating after such time (2hrs?) so new user registration wont be able to detect that a nick is registered until then...

So im really out of clues on my own for doing this.

Does anyone have an idea on best approach to detecting this? The only thing i can think of is a module that syncs a db table itself for registered nicks, but thats a lil bit duplication of data. Is that likely going to be my only option?
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Checking nickname registration status: Best approach?
« Reply #1 on: August 17, 2008, 10:59:06 AM »

i can't see any other way then a separate module to keep a db with regged nicks up2date..
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Aikar

  • Anope User
  • Offline Offline
  • Posts: 13
Re: Checking nickname registration status: Best approach?
« Reply #2 on: August 18, 2008, 01:08:02 AM »

alright started a new topic in modules about this then
http://forum.anope.org/index.php?topic=2291.0
Logged
Pages: [1]   Go Up