Molson™ Posted April 18, 2008 Report Share Posted April 18, 2008 ($hget(AopAccounts,$gettok($ial($nick,1).addr,1,64),GlobalQ)) ($hget(AopAccounts,$gettok($ial($nick,1).addr,1,64),$chan)) What is wrong with these? I add them like .hadd -m AopAccounts $gettok($ial($$1,1).addr,1,64) $chan %x and for global .hadd -m AopAccounts $gettok($ial($$1,1).addr,1,64) GlobalQ %x Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted April 18, 2008 Report Share Posted April 18, 2008 What doesn't work? Do both not work? Is it just local? Link to comment Share on other sites More sharing options...
Molson™ Posted April 18, 2008 Author Report Share Posted April 18, 2008 (edited) Both don't, actucally. I get * /if: invalid format . Edited April 18, 2008 by Molson™ Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted April 18, 2008 Report Share Posted April 18, 2008 What's on the line that the error occurs on? Link to comment Share on other sites More sharing options...
Molson™ Posted April 18, 2008 Author Report Share Posted April 18, 2008 I had something missing but now it Q's anyone who joins who is on the Aop list but says they are on global even when they are on local. Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted April 18, 2008 Report Share Posted April 18, 2008 Try $remove($replace($chan,$chr(35),$chr(37))) I think that's how it is. Been so long since I've messed with %#. Link to comment Share on other sites More sharing options...
Molson™ Posted April 18, 2008 Author Report Share Posted April 18, 2008 Well I had it working before with elseif ($hget(AopAccounts,$gettok($ial($nick,1).addr,1,64)) == $chan) { but ever since I added aop reason it don't work that way. Same thing with Global it was if ($hget(AopAccounts,$gettok($ial($nick,1).addr,1,64)) == GlobalQ) { Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted April 18, 2008 Report Share Posted April 18, 2008 If you added a reason, you probably have to adjust your $gettok from 64 to 32. Link to comment Share on other sites More sharing options...
Molson™ Posted April 18, 2008 Author Report Share Posted April 18, 2008 (edited) on @*:JOIN:#:{ var %A = $hget(AopAccounts,$gettok($ial($nick,1).addr,1,32),GlobalQ) if ($hget(AopAccounts,$gettok($ial($nick,1).addr,1,32),GlobalQ)) { $iif($readini(message.ini,Options,Message) = on,msg #) GlobalQ $nick Logged as $+($gettok(%A,2-,32)) .raw mode # +q $nick } I have that so far and it don't show the reason. And it still thinks your on GlobalQ when your on LocalQ. Edited April 18, 2008 by Molson™ Link to comment Share on other sites More sharing options...
x-cOn Posted April 18, 2008 Report Share Posted April 18, 2008 I was never a fan of hash tables Link to comment Share on other sites More sharing options...
Recommended Posts