taskWeeChat - Tasks: task #5441, Add /notify and /unnotify commands

 
 

task #5441: Add /notify and /unnotify commands

Submitter:  Sebastien Helleu <flashcode>
Submitted:  Mon 17 Apr 2006 07:22:39 PM UTC
Votes: 100
 
Category:  irc plugin Should Start On:  Sun 16 Apr 2006 10:00:00 PM UTC
Should be Finished on:  Sat 30 Dec 2006 11:00:00 PM UTC Priority:  * 1 - Later
Status:  Done Privacy:  Public
Assigned to:  flashcode Percent Complete:  100%
Originator Name:  Open/Closed:  Closed
Planned Release:  0.3.4 IRC nick: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 06 Nov 2010 10:40:03 AM UTC, comment #4: 

Done:
- new IRC command /notify
- new options: irc.look.notify_tags_ison, irc.look.notify_tags_whois, irc.network.notify_check_ison, irc.network.notify_check_whois
- new option "notify" in servers (but should not be changed, only /notify command should be used)
- infolist "irc_notify" to get notify list (by server or for all servers).

Sebastien Helleu <flashcode>
Group administrator
Thu 19 Oct 2006 05:50:17 PM UTC, comment #3: 

Here is a user interface proposal for /notify and /unnotify.

Syntax from Irssi:

    NOTIFY [-away] [-idle [<time>]] <mask> [<ircnets>]
   
         -away: Notifies about away-status changes
         -idle: Notifies if idle time is first larger than <minutes>
                (default is hour) and then it drops down.
         -list: Lists the notify list entries with all their settings  
                <mask>: Either a simple "nick" or "nick!*@*blah.org".
                The nick can't contain wildcards, but the user/host can.
           
    /NOTIFY without any arguments displays if the people in notify list are online or offline.
   


    UNNOTIFY <mask>
   
    Removes an entry from the notify list.
   

    /SET NOTIFY ON|OFF

    Turn nick notifications on or off.


Objective:

    Provide WeeChat user with mechanism to easily notice when person
    <nick> becomes active on the same IRC server as the WeeChat user.

    Mechanism should be a visual 'cue' within the main WeeChat
    interface (ncurses). It should also be intuitive and similar in
    style to other 'cue's already implement by WeeChat.

    The most similar mechanism already implemented in WeeChat is the
    activity cue which displays:
        [Act: 7,4,5]
    to indicate activity on buffers of numbers 7, 4, and 5.

Context:

    As an example, the context of the 'activity cue' is the state of
    each WeeChat buffer. When a buffer's state changes, the 'activity
    cue' is updated.

    Likewise, the context of the 'notify cue' is the state of specific
    remote IRC users, as selected by the WeeChat user. The remote
    user is identified as a (nick, server) pair, and the same nick on
    two different server networks is not consider the same remote
    user. When the state of the remote user changes to one of the
    following:
        (1) not idle
        (2) log in
    the 'notify cue' is displayed.

    When the user performs a /notify or /unnotify command, that
    command is specific to the server of the currently selected
    window.


Configuration:

    The RC file configuration would contain a list of notify nicks for
    each [server] section. As an example:

    [server]
    server_name = "freenode"
    server_notify_nicks = "john,mary,joe"
    server_notify_nicks_enable = on

    The /notify command would add a nick to the list
    'server_notify_nicks', and the /unnotify command would remove a
    nick from the same list.


Implementation:

    Assuming the IRC server does not provide a method for receiving
    notices on nicks, then WeeChat would poll the server at an
    interval (such as 120 seconds).

    WeeChat would preform something similar to:
        /whois nick
    and monitor the 'idle' time.

    Upon receiving a server reply that: (a) the nick is on-line, but
    was not previously, or (b) the nick has less idle time than
    before, WeeChat would display a 'notify cue'.


    Assuming the IRC server does provide a method for receiving
    notices on nicks, the WeeChat could monitor for server responses
    on the main server buffer and provide 'notify cues' based upon the
    server's output. With this method, it would be the user's
    responsibility to understand what server command to use to request
    'notifications' from the server, or to overload the /notify command.

    [server]
    server_notify_nicks_command = "/quote /notifyserv NICK"
    server_notify_nicks_pattern = "Server notification that * is on-line."


Possible Cues:

    (A)
   
    On the same status line, near where 'activity cues' are displayed,
    also display a 'notify cue' similar in format to:

    [Act: jim@freenode,mary@undernet]

    Which indicates jim@freenote is active, and mary@undernet is
    active.


    (B)

    Extend (A) to show a buffer number if nick is also in the nick
    list of a buffer:

    [Act: jim@freenode 4,mary@undernet 7]

    Here, jim is in buffer 4, and marry in buffer 7.


    (C)

    Split the right-hand nick list to have 2 sections.
    The lower section displays nicks for server notifications, for all
    servers currently connected.

      |-----------|
      |           |
      |           |
      |           |
      |           |
      |-----------|
      |           |
      |           |
      |-----------|


    (D)

    Provide script call-back method that allows script function to be
    called upon 'notify cue'.


    (E)

    Imitate Irssi.  After all, WeeChat seems rather similar to it.

    (F)

    Imitate mIRC.


References:

    http://irssi.org/documentation/manual
    http://irssi.org/documentation/design

    http://www.mirc.com/ircintro.html
    http://www.mirc.net/newbie/notify.php


ts <timotheus25>
Thu 19 Oct 2006 02:39:44 PM UTC, comment #2: 

[16:24:08]         GolemJ>> timotheus25: what exactly should notify do?
[16:24:26]    timotheus25>> GolemJ: that is a good question
[16:24:29]          Sigma>> hmm actually modes seem not to be ignored at all
[16:25:17]    timotheus25>> GolemJ: I think that a good idea would be to highlight and/or slowly 'blink' (rotate colors) of said nick on right-hand nick list of channel.
[16:25:44]    timotheus25>> and naturally make sure that relevant nick is toward the top of the list (visible)                                                          
[16:26:38]    timotheus25>> another method would be to display an info message on the status line of the current window, similar to 'act' (activity)
[16:27:28]         GolemJ>> you mean blink with nick e.g. when he write something?
[16:27:31]    timotheus25>> oh course, is it possible to monitor the status of a nick for the whole server, or can they only be viewed per channel, I am uncertain -- but I think that watching for a nick on the
                            server is possbile.
[16:27:44]    timotheus25>> GolemJ: yes, or when he returns from idle
[16:28:29]    timotheus25>> GolemJ: could be a polling operation if necessary (but polling is last-resort)

Jiri Golembiovsky <golemj>
Thu 19 Oct 2006 01:38:03 AM UTC, comment #1: 

All my votes to this feature!

ts <timotheus25>
Mon 17 Apr 2006 07:22:39 PM UTC, original submission:  

Used to be warned by WeeChat when a given nick/host connects to the given irc network.

Sebastien Helleu <flashcode>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #11006:  proposal_weechat_notify.txt added by timotheus25 (5KiB - text/plain - proposal_weechat_notify.txt)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Updated the item)
  •  

    There are 100 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-16 flashcode Open/ClosedOpen Closed
    2010-11-06 flashcode Percent Complete0% 100%
        Assigned toNone flashcode
    2010-11-06 flashcode StatusNone Done
    2010-08-11 flashcode Planned ReleaseNone 0.3.4
    2006-10-19 timotheus25 Attached File- Added proposal_weechat_notify.txt, #11006
    2006-10-19 timotheus25 Carbon-Copy- Added timotheus25
    2006-10-19 timotheus25 Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code