PaladinWhite
Member
So, Mafia will notify me of new kmails in the chat and gCLI. I'd like to detect and handle new kmails myself. But I can't figure out how to do it.
I thought it would be as simple as contains_text(visit_url("main.php"), "New message received"). But that never seems to return true - main.php never contains that text. Even when I receive a message, try that check (which returns false), then visit main.php in the relay browser, and I can see that text waiting there for me.
What silly mistake am I making? Is there an easier way to do this?
I thought it would be as simple as contains_text(visit_url("main.php"), "New message received"). But that never seems to return true - main.php never contains that text. Even when I receive a message, try that check (which returns false), then visit main.php in the relay browser, and I can see that text waiting there for me.
What silly mistake am I making? Is there an easier way to do this?
Last edited: