Page 1 of 1

[Need Feedback:] Suggestion on 'watch'

Posted: Fri Oct 05, 2012 7:38 am
by dboyz
I wonder if my suggestion can be implemented on an ircd.

Currently "watch" can only be applied to nicknames where "the server will send you a message when any nickname in your watch list logs on or off."
Is it possible to make "watch" to do the same thing for account names?

Re: [Need Feedback:] Suggestion on 'watch'

Posted: Fri Oct 05, 2012 8:43 am
by katsklaw
No, there's no such thing as an account name to the ircd. Account name is a services thing.

Re: [Need Feedback:] Suggestion on 'watch'

Posted: Fri Oct 05, 2012 9:20 am
by dboyz
You are right. I was thinking of when someone issues an IDENTIFY command with the correct password to an account name, services can send data to the ircd. Then the ircd sends the information to user. I want to make it '"feel" similar to 'watch'.
The above method should require a module installed on the services side but do you think it is possible to be implemented? Oh and do you have any alternative ideas?

Re: [Need Feedback:] Suggestion on 'watch'

Posted: Fri Oct 05, 2012 9:11 pm
by katsklaw
Its very possible, but best as a services side watch so that all ircds supported by said services package benefits. Also services doesn't need to tell the ircd to tell the user when services can tell the user directly.

Services can send numerics like any other server. I have an example of this in my channel url module for anope where services sends RPL_CHANNELURL via normal server traffic. Services should be able to do the same for the watch numerics but use account name instead of nicks since as stated, the ircd wont know the difference.

Re: [Need Feedback:] Suggestion on 'watch'

Posted: Sat Oct 20, 2012 7:25 am
by dboyz
Thanks for the reply katsklaw.
In Unreal 3.2.10-rc1 release note, I noticed the new away-notify feature which is part of what I have requested above [scroll up].
But the feature does not allow users to choose who do they want to be notified and this feature seems to be restricted to only clients on the same channels.

Re: [Need Feedback:] Suggestion on 'watch'

Posted: Sat Oct 20, 2012 8:33 am
by Syzop
Are you looking for away notification or watch notification on account names? Because that's quite different ;)

WATCH away notification already exists, I added it in 3.2.8. I don't think it's implement on any (major) client, though (but would be happy to be proven wrong).

Code: Select all

- Backport from 3.3 away notification from Oct 2006, this is v0, a further
  patch will follow soon and the numerics will be changed.
- Ok, finished away notification in WATCH. It now shows the away reasons too.
  This new feature (away notify) is announced in 005 (ISUPPORT) as: WATCHOPTS=A

  Format is: WATCH A +UserOne +UserTwo

  New numerics to cope with away notification in WATCH are:
  RPL_NOWISAWAY: to indicate the user is away _when adding_ it to WATCH list
  RPL_GONEAWAY:  user was not away, but is now
  RPL_NOTAWAY:   user was away, but is no longer away
  RPL_NOWISAWAY: user was away, and still is, but the reason changed
  Example:

  WATCH A +Target
  Request to add user 'Target' to the watch list with away notification

  :maintest.test.net 609 MySelf Target ~blih test.testnet 1204309588 :not here atm
  Reply to watch add: user is online and away, reason is provided

  :maintest.test.net 599 MySelf Target ~blih test.testnet 1204309588 :is no longer away
  User is back (no longer away)

  :maintest.test.net 598 MySelf Target ~blih test.testnet 1204309722 :lunch
  State change: user is now away, reason is provided

  :maintest.test.net 597 MySelf Target ~blih test.testnet 1204309738 :shopping, bbl
  User is still away, but reason changed.

  The syntax for each numeric is:
  <nickname> <username> <hostname> <awaysince> :<away reason>
  In case of 599 (RPL_NOTAWAY) it is:
  <nickname> <username> <hostname> <awaysince> :is no longer away

  For the record, this is all based on a draft from codemastr from 2004, which was
  implemented in Unreal3.3 (devel branch) in 2006. Today, in 2008 it was updated
  with away reason support and backported to Unreal3.2. Because away notification
  hasn't been used until now (due to it only being in Unreal3.3) we felt it was
  safe to break some numerics.
What you describe with regards to monitoring users identifying for account names can (indeed) be done in the IRCd thanks to ESVID which is new in 3.2.10.
You can't plug into the WATCH system as a module though. Or at least it'd be hard.
You could request it as a core feature on bugs.unrealircd.org, see other comments (privacy comes to mind), and see if anyone would be willing to implement it.

Re: [Need Feedback:] Suggestion on 'watch'

Posted: Sat Oct 20, 2012 9:39 am
by dboyz
oops I pasted the wrong word. I was searching for account-notify not away-notify.