~ubuntu-branches/ubuntu/trusty/irssi-plugin-xmpp/trusty

« back to all changes in this revision

Viewing changes to src/fe-common/module-formats.c

  • Committer: Bazaar Package Importer
  • Author(s): David Ammouial
  • Date: 2008-02-04 21:01:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080204210127-qvw99l8m26ksme18
Tags: 0.13+cvs20080121-1
* CVS snapshot.
* Rephrased package description, thanks to Ted Percival (Closes: #444109).
* debian/control: Promote "Homepage" to a real field.
* Update homepage.
* Adapt debian/rules to new upstream Makefile system.
* Bump Standards-Version to 3.7.3 (no changes required).
* Removed empty TODO from debian/docs, added docs/GENERAL, docs/STARTUP,
  docs/XEP.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
 
2
 * $Id: module-formats.c,v 1.13 2007/12/29 00:41:48 errtu Exp $
 
3
 *
2
4
 * Copyright (C) 2007 Colin DIDIER
3
5
 *
4
6
 * This program is free software; you can redistribute it and/or modify
20
22
#include "formats.h"
21
23
 
22
24
FORMAT_REC fecommon_xmpp_formats[] = {
23
 
    { MODULE_NAME, "XMPP", 0 },
 
25
        { MODULE_NAME, "XMPP", 0, { 0 } },
24
26
 
25
 
    /* ---- */
26
 
        { NULL, "Roster", 0 },
 
27
        /* ---- */
 
28
        { NULL, "Roster", 0, { 0 } },
27
29
 
28
30
        { "roster_group", "{hilight $0}:", 1, { 0 } },
29
 
        { "roster_nick", "  ({hilight $0}) {nick $1} $2", 3, { 0, 0, 0 } },
30
 
        { "roster_ressource", "[$0{nick $1}({hilight $2)}$3]", 4 , { 0, 0, 0, 0 } },
31
 
        { "roster_ressource_away", "({hilight $0})", 1, { 0 } },
32
 
        { "roster_ressource_away_status", ": {comment $3}", 1 , { 0 } },
33
 
        { "begin_of_roster", " ", 0 },
34
 
        { "end_of_roster", "End of /ROSTER list", 0},
35
 
    { "not_in_roster", "{nick $0} isn't in the roster.", 1 , { 0 } },
36
 
 
37
 
    /* ---- */
38
 
    { NULL, "Subscription", 0 },
39
 
 
40
 
    { "suscribe", "{nick $0} wants to subscribe to your presence. {comment $1}", 2, { 0, 0 } },
41
 
    { "suscribed", "You can see {nick $0} presence now.", 1 , { 0 } },
42
 
    { "unsuscribe", "{nick $0} doesn't want to see your presence anymore.", 1 , { 0 } },
43
 
    { "unsuscribed", "{nick $0} doesn't want you to see his/her presence anymore.", 1 , { 0 } },
44
 
 
45
 
    /* ---- */
46
 
    { NULL, "Misc", 0 },
47
 
 
48
 
    { "default_event", "$1 $2", 3, { 0, 0, 0 } },
49
 
    { "default_error", "ERROR $1 $2", 3, { 0, 0, 0 } },
50
 
 
51
 
    { NULL, NULL, 0 }
 
31
        { "roster_jid", "  ({hilight $0}) {nick $1} $2 $3", 4, { 0, 0, 0, 0 } },
 
32
        { "roster_name", "  ({hilight $0}) {nick $1} ($2) $3 $4", 5, { 0, 0, 0, 0, 0 } },
 
33
        { "roster_resource", "[$0{nick $1}($2)$3]", 4, { 0, 0, 0, 0 } },
 
34
        { "roster_resource_show", "($0)", 1, { 0 } },
 
35
        { "roster_resource_status", ": $0", 1, { 0 } },
 
36
        { "roster_subscription", "(subscription: $0)", 1, { 0 } },
 
37
        { "begin_of_roster", "ROSTER: {nick $0} $1 $2\n", 3, { 0, 0, 0 } },
 
38
        { "end_of_roster", "End of ROSTER", 0, { 0 } },
 
39
        { "not_in_roster", "{nick $0}: not in the roster", 1, { 0 } },
 
40
 
 
41
        /* ---- */
 
42
        { NULL, "Subscription", 0, { 0 } },
 
43
 
 
44
        { "suscribe", "{nick $0} wants to subscribe to your presence {comment $1}", 2, { 0, 0 } },
 
45
        { "suscribed", "You can see {nick $0} presence now", 1, { 0 } },
 
46
        { "unsuscribe", "{nick $0} doesn't want to see your presence anymore", 1 , { 0 } },
 
47
        { "unsuscribed", "{nick $0} doesn't want you to see his/her presence anymore", 1 , { 0 } },
 
48
 
 
49
        /* ---- */
 
50
        { NULL, "Message", 0, { 0 } },
 
51
 
 
52
        { "message_event", "{nick $0}: $1", 2,  { 0, 0} },
 
53
        { "message_not_delivered", "{nick $0}: cannot deliver message {comment $1}", 2,  { 0, 0 } },
 
54
        { "message_timestamp", "[{timestamp $0}] $1", 2, { 0, 0 } },
 
55
 
 
56
        /* ---- */
 
57
        { NULL, "Queries", 0, { 0 } },
 
58
 
 
59
        { "query_aka", "{nick $0}: Also known as {nick $1}", 2, { 0, 0 } },
 
60
 
 
61
        /* ---- */
 
62
        { NULL, "Channel", 0, { 0 } },
 
63
 
 
64
        { "joinerror", "Cannot join to room {channel $0} {comment $1}", 2, { 0, 0 } },
 
65
 
 
66
        /* ---- */
 
67
        { NULL, "Presence", 0, { 0 } },
 
68
 
 
69
        { "presence_change", "{nick $0}: is now $1", 2, { 0, 0 } },
 
70
        { "presence_change_reason", "{nick $0}: is now $1 {comment $2}", 3, { 0, 0, 0 } },
 
71
 
 
72
        /* ---- */
 
73
        { NULL, "Misc", 0, { 0 } },
 
74
 
 
75
        { "default_event", "$1 $2", 3, { 0, 0, 0 } },
 
76
        { "default_error", "ERROR $1 $2", 3, { 0, 0, 0 } },
 
77
 
 
78
        { NULL, NULL, 0, { 0 } }
52
79
};