Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to detect Voice in IRC_OnUserSay #8

Open
Yousha opened this issue Jul 18, 2018 · 0 comments
Open

Unable to detect Voice in IRC_OnUserSay #8

Yousha opened this issue Jul 18, 2018 · 0 comments

Comments

@Yousha
Copy link

Yousha commented Jul 18, 2018

I'm trying to detect IRC_IsVoice in IRC_OnUserSay callback, but it won't work.
I'm just able to detect IRC_IsVoice in IRC commands...

Here is my PAWN code:

public IRC_OnUserSay(botid, recipient[], user[], host[], message[])
{
   if (IRC_IsVoice(botid, "#CHANNELNAME", user))
   {
      new string[MAX_STRING];
      format(string, sizeof string, "[IRC] %s: %s", user, message);
      SendClientMessageToAll(COLOR_WHITE, string);
   }

   return 1;
}

SA-MP: 0.3.7
IRC plugin: 1.4.8
PAWN: 3
OS: Windows 7 32bit
Hardware: x64
IRC network: Freenode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant