Offline chat support - Page 2

Offline chat support

For the discussion of infrastructure improvements and changes.

Moderator: Moderators

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Offline chat support

Post by PicassoCT »

Allow for organizational multi reciver private messages so that tourneys can spam away and also add a time of message decay..


->SayPrivate(ListOfRecivers, 1 day 48 h till decay)
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Offline chat support

Post by gajop »

Broadcast and time-scheduled messages seem interesting, but also out of scope of this proposal.
Is there a reason broadcast is needed? Can't multiple SayPrivate messages be sent normally?

Some sort of server-based event reporting feature wouldn't be bad - but that could probably be done as an upgrade of http://springrts.com/dl/LobbyProtocol/P ... AST:server
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Offline chat support

Post by PicassoCT »

EventListener Architecture, to avoid continus request spamming - or server pumping useless info to everyone.

<- RegisterListener(Event)

->InformListenerOnEvent(Event, Listener)
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Offline chat support

Post by abma »

i've implemented it. known caveats:

- only registered channels can enable logging (=chanserv inside it)
- only channels with enabled logging can be subscribed to
- messages gets lost when user logins to server but doesn't join channel
- possible bugs i don't know yet

will apply soon on lobby server, will do some more local testing first. questions/thoughts?
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Offline chat support

Post by Anarchid »

questions/thoughts?
A !command to manage this for clients without "o" compatibility flag would be nice.

E.g. for IRC bridge.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Offline chat support

Post by abma »

basicly its already backwards compatible and works without 'o' compatibility flag. you only need to subscribe once to the channels which can be done trough the irc bridge:

http://springrts.com/wiki/IrcBridge#How ... server_.3F

but then you won't see timestamps.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Offline chat support

Post by gajop »

gajop wrote:Btw, are we sure it's best to use unixtime? Conversion seems annoying: http://www.epochconverter.com/
Is there no better date format than that, like this: http://en.wikipedia.org/wiki/ISO_8601 ?
Assuming you implemented the unix time version, maybe we should use a standard way (as listed in my quote) of exchanging date and time instead?
abma wrote: - messages gets lost when user logins to server but doesn't join channel
What do you mean by this? Are messages not sent?
I thought that your implementation would still send all messages, but do it regardless of whether or not user joined the channel.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Offline chat support

Post by abma »

gajop wrote:Assuming you implemented the unix time version, maybe we should use a standard way (as listed in my quote) of exchanging date and time instead?
atm ISO 8601 is used: https://github.com/spring/uberserver/bl ... l.py#L1583

gajop wrote:What do you mean by this? Are messages not sent?
I thought that your implementation would still send all messages, but do it regardless of whether or not user joined the channel.
messages are only sent when you join a channel. when a user leaves server, before messages are sent / without joining the channel, messages are lost. this was easiest to implement / is most compatible / requires very few db writes.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Offline chat support

Post by gajop »

That all sounds OK imo.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Offline chat support

Post by Jools »

Scandinavian letters don't work anymore in messages written in channel.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Offline chat support

Post by gajop »

Jools wrote:Scandinavian letters don't work anymore in messages written in channel.
Has this been fixed? If not has the issue been reported in uber?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Offline chat support

Post by abma »

should be fixed by this change:

https://github.com/spring/uberserver/co ... faadbeR644

(which is not applied yet)
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Offline chat support

Post by abma »

applied. subscribe should work now...

or not fully... needs a bit more testing.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Offline chat support

Post by abma »

ok, fixed one bug, should work now.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Offline chat support

Post by abma »

to subscribe to a channel, the client have to send this to the server
SUBSCRIBE chanName=sy
atm this is only enabled for #sy, other channels have to enable storing history first. To subscribe in springlobby, write the above command in the main server window. with the irc-bridge, join &local and write it there.

it will be interesting if i.e. irc bridge will be confused by it as now messages are send from users which are offline let's see.
Post Reply

Return to “Infrastructure Development”