From cae6d7f1dcf49dd9029e013d77df07f9d84d0007 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 23 Feb 2004 21:14:37 +0000 Subject: [PATCH] Implemented public key support to WATCH command. --- apps/irssi/docs/help/in/watch.in | 7 +++ apps/irssi/src/silc/core/silc-servers.c | 2 +- lib/silcclient/client_notify.c | 17 +++++- lib/silcclient/command.c | 76 ++++++++++++++++++------- 4 files changed, 79 insertions(+), 23 deletions(-) diff --git a/apps/irssi/docs/help/in/watch.in b/apps/irssi/docs/help/in/watch.in index 962b3564..6ee12c38 100644 --- a/apps/irssi/docs/help/in/watch.in +++ b/apps/irssi/docs/help/in/watch.in @@ -6,6 +6,11 @@ When the watched nickname appears in the network, leaves the network or its user mode is changed you will be notified for this change. This same command can be used also to remove nicknames from being watched. +This command may also be used to watch users by their public keys. +Since nicknames are not unique in SILC users may frequently change their +nickname. By watching them by public key you will be able to keep +track of your friends regardless of what nickname they use. + Note that some users may have a user mode set that rejects you from receiving notifications about them. Also note that since nicknames are not unique it is possible that same nickname matches several users in @@ -16,5 +21,7 @@ Examples: /WATCH -add foobar /WATCH -del foobar + /WATCH -pubkey +/path/to/add/public_key.pub + /WATCH -pubkey -/path/to/del/public_key.pub See also: WHOIS diff --git a/apps/irssi/src/silc/core/silc-servers.c b/apps/irssi/src/silc/core/silc-servers.c index 9d5d661b..d9fdd004 100644 --- a/apps/irssi/src/silc/core/silc-servers.c +++ b/apps/irssi/src/silc/core/silc-servers.c @@ -442,7 +442,7 @@ char *silc_server_get_channels(SILC_SERVER_REC *server) /* SYNTAX: FILE */ /* SYNTAX: JOIN [] [-cipher ] [-hmac ] [-founder] [-auth [ []]]*/ /* SYNTAX: DETACH */ -/* SYNTAX: WATCH [<-add | -del> ] */ +/* SYNTAX: WATCH [<-add | -del> ] [-pubkey +|-] */ /* SYNTAX: STATS */ /* SYNTAX: ATTR [<-del>