diff options
Diffstat (limited to 'dht/Presence')
-rw-r--r-- | dht/Presence/Chat.hs | 2 | ||||
-rw-r--r-- | dht/Presence/ClientState.hs | 4 | ||||
-rw-r--r-- | dht/Presence/Presence.hs | 4 | ||||
-rw-r--r-- | dht/Presence/Stanza/Types.hs | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/dht/Presence/Chat.hs b/dht/Presence/Chat.hs index 03bea44b..9c109895 100644 --- a/dht/Presence/Chat.hs +++ b/dht/Presence/Chat.hs | |||
@@ -34,7 +34,7 @@ newtype Affiliation = Affiliation | |||
34 | { reservedNick :: Text | 34 | { reservedNick :: Text |
35 | } | 35 | } |
36 | 36 | ||
37 | data ChatEvent = Join | Part | Action Text | Talk Text -- | NickChange Text | 37 | data ChatEvent = Join | Part | Action Text | Talk Text -- NickChange Text |
38 | deriving (Eq,Ord,Show) | 38 | deriving (Eq,Ord,Show) |
39 | 39 | ||
40 | data Membership = Outside | Inside | 40 | data Membership = Outside | Inside |
diff --git a/dht/Presence/ClientState.hs b/dht/Presence/ClientState.hs index 08cc54ed..9c7e7b97 100644 --- a/dht/Presence/ClientState.hs +++ b/dht/Presence/ClientState.hs | |||
@@ -9,8 +9,8 @@ import UTmp ( ProcessID ) | |||
9 | import XMPPServer ( Stanza ) | 9 | import XMPPServer ( Stanza ) |
10 | 10 | ||
11 | data ClientState = ClientState | 11 | data ClientState = ClientState |
12 | -- | The unix tty or the jabber resource for this client. | 12 | { -- | The unix tty or the jabber resource for this client. |
13 | { clientResource :: Text | 13 | clientResource :: Text |
14 | -- | Unix user that is running this client. | 14 | -- | Unix user that is running this client. |
15 | , clientUser :: Text | 15 | , clientUser :: Text |
16 | -- | The specific roster/identity of the user that this client presenting. | 16 | -- | The specific roster/identity of the user that this client presenting. |
diff --git a/dht/Presence/Presence.hs b/dht/Presence/Presence.hs index c54c3659..87c00656 100644 --- a/dht/Presence/Presence.hs +++ b/dht/Presence/Presence.hs | |||
@@ -78,8 +78,8 @@ localJID user profile resource = | |||
78 | -- unique value should be able to hold a reference to the ToxID identity which | 78 | -- unique value should be able to hold a reference to the ToxID identity which |
79 | -- should stay online until all interested keys have run 'deactivateAccount'. | 79 | -- should stay online until all interested keys have run 'deactivateAccount'. |
80 | data ToxManager k = ToxManager | 80 | data ToxManager k = ToxManager |
81 | -- | Put the given ToxID online. | 81 | { -- | Put the given ToxID online. |
82 | { activateAccount :: k -> Text -> SecretKey -> IO () | 82 | activateAccount :: k -> Text -> SecretKey -> IO () |
83 | -- | Take the given ToxID offline (assuming no other /k/ has a claim). | 83 | -- | Take the given ToxID offline (assuming no other /k/ has a claim). |
84 | , deactivateAccount :: k -> Text -> IO () | 84 | , deactivateAccount :: k -> Text -> IO () |
85 | , toxConnections :: Connection.Manager ToxProgress ToxContact | 85 | , toxConnections :: Connection.Manager ToxProgress ToxContact |
diff --git a/dht/Presence/Stanza/Types.hs b/dht/Presence/Stanza/Types.hs index 8fc23f84..f09025e0 100644 --- a/dht/Presence/Stanza/Types.hs +++ b/dht/Presence/Stanza/Types.hs | |||
@@ -122,14 +122,14 @@ data MessageType | |||
122 | -- to that resource; otherwise the server MUST either | 122 | -- to that resource; otherwise the server MUST either |
123 | -- silently ignore the message or return an error (see | 123 | -- silently ignore the message or return an error (see |
124 | -- Section 8). | 124 | -- Section 8). |
125 | 125 | -- | |
126 | -- | ErrorMsg -- The message is generated by an entity that experiences an | 126 | -- | ErrorMsg -- The message is generated by an entity that experiences an |
127 | -- error when processing a message received from another entity (for | 127 | -- error when processing a message received from another entity (for |
128 | -- details regarding stanza error syntax, refer to [XMPP‑CORE]). A client | 128 | -- details regarding stanza error syntax, refer to [XMPP‑CORE]). A client |
129 | -- that receives a message of type "error" SHOULD present an appropriate | 129 | -- that receives a message of type "error" SHOULD present an appropriate |
130 | -- interface informing the original sender regarding the nature of the | 130 | -- interface informing the original sender regarding the nature of the |
131 | -- error. | 131 | -- error. |
132 | 132 | -- | |
133 | deriving (Show,Read,Ord,Eq,Enum) | 133 | deriving (Show,Read,Ord,Eq,Enum) |
134 | 134 | ||
135 | 135 | ||