Next, Hate asking questions, so checked through others for the solution, but found nothing.
I have tried my best to get a reply to a whois, because I want this to whois someone on join, and put Raw 330 (Q Auth) into a variable so I can query a database, but I just can't get the whois to return. I have added 330 into defines.php, and extension into smartirc.php.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
whois is included in SMARTIRC_TYPE_WHO, so an actionhandler with that type should work, I dont know anything about that 330 though, probably some violating RFC stuff...
if you want you can hack it into SmartIRC, first make a RPL_ entry for that in defines.php, then create a mapping in SmartIRC.php in the _gettype() function, in the switch() make a new case for your new RPL_ type and return SMARTIRC_TYPE_WHO. Now in SMARTIRC_TYPE_WHO actionhandlers will be your 330 message.
If this didn't work tell, but I bet it does. Have fun hacking ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-11-30
Hey, thanks for the reply, I managed to get it to return something, but not as I expected, it would only return:
is authed as
Raw 330 is an RFC that Quakenet implemented to give a whois'er information on who they are auth'd as, in co-operation with their Q/L Bot's. Information about it is http://script.quakenet.org/index.php?p=raws&a=330 .
It won't return the nick and auth, just anything after the : .
So any suggestions about fixing this?
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey, first thing, great work.
Next, Hate asking questions, so checked through others for the solution, but found nothing.
I have tried my best to get a reply to a whois, because I want this to whois someone on join, and put Raw 330 (Q Auth) into a variable so I can query a database, but I just can't get the whois to return. I have added 330 into defines.php, and extension into smartirc.php.
whois is included in SMARTIRC_TYPE_WHO, so an actionhandler with that type should work, I dont know anything about that 330 though, probably some violating RFC stuff...
if you want you can hack it into SmartIRC, first make a RPL_ entry for that in defines.php, then create a mapping in SmartIRC.php in the _gettype() function, in the switch() make a new case for your new RPL_ type and return SMARTIRC_TYPE_WHO. Now in SMARTIRC_TYPE_WHO actionhandlers will be your 330 message.
If this didn't work tell, but I bet it does. Have fun hacking ;)
Hey, thanks for the reply, I managed to get it to return something, but not as I expected, it would only return:
is authed as
Raw 330 is an RFC that Quakenet implemented to give a whois'er information on who they are auth'd as, in co-operation with their Q/L Bot's. Information about it is http://script.quakenet.org/index.php?p=raws&a=330 .
It won't return the nick and auth, just anything after the : .
So any suggestions about fixing this?
Thanks in advance
if you want the whole message than just use $data->rawmessage instead of $irc->message ;)
Aha, works now, time to continue working on it, cheers m8, owe you one!! Bet i'll run into another prob ;)
can u please post what u have changed?