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

Anti-idle feature not working when PRIVMSG is upgraded by mIRC to CPRIVMSG (Undernet for example) #54

Closed
ghost opened this issue May 25, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented May 25, 2022

Describe the bug
Anti idle feature in add-on EXTRAS.PPA does not function when in channel on Undernet.

To Reproduce

  1. Connect to Undernet and join an empty channel (you are opped)
    /server -m irc.undernet.org -i testaccount testaccount_ -j #testabcd1234
  2. Install extras.ppa
    /addon i addons\extras.ppa
  3. Enable antiidle:
    /aidle on
  4. Ext Whois yourself:
    //ew $me

Wait a few minutes and ext whois yourself again. The idle counter for your nick on the server does NOT reset to 0.

Expected behavior
A clear and concise description of what you expected to happen.
Idle counter to be reset to 0 upon ext whois yourself.

Please complete the following information:

  • mIRC version: 7.68
  • PnP version: 4.22.9

Additional context
Add any other context about the problem here.

First reported by user snow on the kristshell pnp forum.
The command used in PnP is: scid -at1 .msg $!me antiidle
The /msg command used in PnP (silent with . prefix) results in a CPRIVMSG from the server and no reset on idle counter.

Behaviour arround mIRC and upgrading PRIVMSG to CPRIVMSG command is described here: https://en.wikichip.org/wiki/mirc/behaviors#CPRIVMSG_.2F_CNOTICE

@ghost
Copy link
Author

ghost commented May 25, 2022

To resolve this issue change:

scid -at1 .msg $!me antiidle

to
scid -at1 raw -q PRIVMSG $!me antiidle

@cnecrea
Copy link

cnecrea commented May 26, 2022

Many thanks for this fix!

Regards,
snow.

@ghost
Copy link
Author

ghost commented May 11, 2023

I just came across something else that is related. So I leave this note here:

The proper syntax is actually a little different as seen on this line:

alias _privmsg .raw privmsg $1 : $+ $2-

So I believe my fix is better written as:

scid -at1 _privmsg $!me antiidle

Note: I'm not sure about $!me in here and I've no windows computer atm to test. (double-evaluation)

@ghost ghost closed this as completed in d4cb4b4 May 29, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant