Check for accounts
#8

PHP код:
IRCCMD:checkip(botidchannel[], user[], host[], params[])
{
if(!
IsEchoChannel(channel)) return iNoticeuserIRC_WRONG_CHANNEL);
new 
query[128],temp_username[35],temp_ip[40],string[128];
if(
sscanf(params"s"temp_ip)) return iEchoUse("!checkip [ IP ADRESS ]");
format(query,sizeof(query),"SELECT * FROM user WHERE regip ='%s'",temp_ip);
mysql_function_query(dbhandle,query,true,"","");
cache_get_field_content(0,"username",temp_username);
format(string,sizeof(string),"%s",temp_username);
iEcho(string);
return 
1;

Right now i got this.

When i do !checkip 127.0.0.1, nothing happends.
(127.0.0.1 is registered to 2 users in the db)
Reply


Messages In This Thread
Check for accounts - by justjamie - 22.05.2016, 13:00
Re: Check for accounts - by iKevin - 22.05.2016, 13:03
Re: Check for accounts - by justjamie - 22.05.2016, 13:04
Re: Check for accounts - by iKevin - 22.05.2016, 13:08
Re: Check for accounts - by justjamie - 22.05.2016, 13:10
Re: Check for accounts - by iKevin - 22.05.2016, 13:12
Re: Check for accounts - by justjamie - 22.05.2016, 13:16
Re: Check for accounts - by justjamie - 22.05.2016, 13:26

Forum Jump:


Users browsing this thread: 1 Guest(s)