[ekg2-commit] ekg2: commands-en.txt (HEAD) commands-pl.txt (HEAD) commands.c (HEAD) session-en.txt (HEAD) session-pl.txt (HEAD) [peres]
CVS commit
cvs w toxygen.net
Czw, 3 Maj 2007, 22:08:00 CEST
Module name: ekg2
Changes by: peres 2007-05-03 22:07:57
Modified files:
commands-en.txt commands-pl.txt commands.c session-en.txt
session-pl.txt
Log message:
- tmsg fix (escape, not unescape), thx to dj.
- help update.
- /reply should accept also reply-ids without '#'.
Index: commands-en.txt
===================================================================
RCS file: /home/cvs/ekg2/plugins/jabber/commands-en.txt,v
diff -d -u -r1.3 -r1.4
--- commands-en.txt 10 Feb 2006 16:19:54 -0000 1.3
+++ commands-en.txt 3 May 2007 20:07:56 -0000 1.4
@@ -130,6 +130,20 @@
parameters:
short description: disconnects and connects again
+reply
+ parameters: #id ...
+ short description: replies on given conversation
+
+ Replies with given message to conversation connected with given
+ Reply-ID. Message can contain subject like in msg, but if not
+ specified, old one (prefixed by subject_reply_prefix) will be used.
+
+tmsg
+ parameters: uid/nickname thread-id ...
+ short description: sends message with thread
+
+ Like msg, but additional, second arg specifies thread-ID to use.
+
userinfo
parameters:
short description: retrieves Jabber Directory info about given jid
Index: commands-pl.txt
===================================================================
RCS file: /home/cvs/ekg2/plugins/jabber/commands-pl.txt,v
diff -d -u -r1.2 -r1.3
--- commands-pl.txt 10 Feb 2006 16:19:54 -0000 1.2
+++ commands-pl.txt 3 May 2007 20:07:56 -0000 1.3
@@ -132,6 +132,22 @@
parametry:
krotki opis: rozłącza i łączy się ponownie
+reply
+ parametry: #reply-id ...
+ krotki opis: odpisuje na wątek
+
+ Wysyła wiadomość jako kontynuację wskazanego przez reply-id wątku.
+ Możliwe jest podanie tematu jak w msg, w przeciwnym razie temat
+ zostanie utworzone w oparciu o temat wątku (poprzedzony
+ subject_reply_prefix).
+
+tmsg
+ parametry: uid/nick id-watku ...
+ krotki opis: wysyła wiadomość wątkowaną
+
+ Działa podobnie jak msg, z tym, że dodatkowy, drugi parametr zawiera
+ identyfikator wątku dla wiadomości.
+
userinfo
parametry:
krotki opis: pobiera informacje z katalogu Jabbera o danym jid
Index: commands.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/jabber/commands.c,v
diff -d -u -r1.164 -r1.165
--- commands.c 3 May 2007 19:30:15 -0000 1.164
+++ commands.c 3 May 2007 20:07:56 -0000 1.165
@@ -522,7 +522,7 @@
params[2] = thread;
/* and now we can set real thread */
- thread = jabber_unescape(params[2]);
+ thread = jabber_escape(params[2]);
} else if (!xstrcasecmp(name, "msg") && (session_int_get(session, "msg_gen_thread") > 0)) {
char *tmp = jabber_thread_gen(j, uid);
thread = jabber_unescape(tmp);
@@ -2621,11 +2621,12 @@
char *tmp = NULL;
jabber_conversation_t *thr = NULL;
- /* XXX: this probably forces #, change that */
- if (params[0][0] == '#' && (id = atoi(params[0]+1)) > 0) {
+ if (((params[0][0] == '#') && (id = atoi(params[0]+1)) > 0) /* #reply-id */
+ || ((id = atoi(params[0])) > 0)) { /* or without # */
debug("We have id = %d!\n", id);
thr = jabber_conversation_get(j, id);
}
+ /* XXX: some UID/thread/whatever match? */
if (!thr) {
printq("invalid_params", name);
Index: session-en.txt
===================================================================
RCS file: /home/cvs/ekg2/plugins/jabber/session-en.txt,v
diff -d -u -r1.7 -r1.8
--- session-en.txt 1 Mar 2007 19:34:01 -0000 1.7
+++ session-en.txt 3 May 2007 20:07:57 -0000 1.8
@@ -3,6 +3,18 @@
// (c) copyright 2004 piotr kupisiewicz <deletek w ekg2.org>
// (c) copyright 2004 tomasz torcz <zdzichu w irc.pl>
+allow_add_reply_id
+ type: integer
+ default value: 1
+
+ Whether ekg2 should add Reply-IDs for incoming messages:
+
+ 0 - disabled
+
+ 1 - add Reply-IDs for messages with threads
+
+ 2 - add Reply-IDs for any message (excl. chats and likes)
+
auto_auth
type: integer
default value: 0
@@ -54,6 +66,13 @@
See also: log_path variable
+msg_gen_thread
+ type: bool
+ default value: 0
+
+ Whether to automagically generate thread-IDs for outgoing messages
+ without given thread.
+
password
type: string
default value: none
Index: session-pl.txt
===================================================================
RCS file: /home/cvs/ekg2/plugins/jabber/session-pl.txt,v
diff -d -u -r1.8 -r1.9
--- session-pl.txt 1 Mar 2007 19:34:01 -0000 1.8
+++ session-pl.txt 3 May 2007 20:07:57 -0000 1.9
@@ -3,6 +3,19 @@
// (c) copyright 2004 piotr kupisiewicz <deletek w ekg2.org>
// (c) copyright 2004 tomasz torcz <zdzichu w irc.pl>
+allow_add_reply_id
+ typ: liczba
+ domyślna wartość: 1
+
+ Określa, czy ekg2 powinno dodawać tzw. Reply-ID dla wiadomości
+ przychodzących:
+
+ 0 - wyłączone
+
+ 1 - tylko dla wiadomości wątkowanych (thread)
+
+ 2 - dla wszystkich wiadomości (wyłączając chat, itp.)
+
auto_auth
typ: liczba
domyślna wartość: 0
@@ -50,6 +63,13 @@
Patrz tez: zmienna "log_path"
+msg_gen_thread
+ typ: bool
+ domyślna wartość: 0
+
+ Określa, czy ekg2 będzie automagicznie generować identyfikatory wątku
+ dla wiadomości bez podanego owego.
+
password
typ: tekst
domyślna wartość: brak
Więcej informacji o liście dyskusyjnej ekg2-commit