PHP urlfetch $(touser) not working as should?

What am I doing wrong here?

Custom Nightbot command for !test

$(urlfetch http://mydomain.com/nightbot.php?user=$(querystring $(touser)))

Code on mydomain.com

<?php
echo "hello " . $_GET['user'];
?>
  • When giving !test it will nicely echo back "hello username*

  • Problem… When a user does !test blabla it will echo back “hello blabla

@Noel

Use $(querystring $(user)) instead of $(querystring $(touser))

1 Like

Will give it a go.

Thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.