Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2000:
[Freeciv-Dev] patch: chatline mesages and connections (PR#527)
Home

[Freeciv-Dev] patch: chatline mesages and connections (PR#527)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] patch: chatline mesages and connections (PR#527)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sat, 19 Aug 2000 05:36:42 -0700 (PDT)

This patch updates handle_chat_msg() to allow sending chatline
message to single connection (and non-player connections, when 
implemented elsewhere), and to identify sender and destination 
appropriately in multi-connect case.

I've implemented this so that the "normal case" of one connection
per player is essentially unchanged, except you can now also 
specify the destination by connection name (which currently usually
differs from player name only if player connected with their
"username").  (Connection names are currently only visisble in
client via eg '/list' on chatline.)  Tries to match player names 
first, then connection names; can force to treat as connection 
name by using two colons.

I considered alternatively always forcing connection names to be
always distinct from player names, and could then specify player
or connection more simply and unambiguously, but that makes 
connection names more awkward in the typical case, and requires
dynamically renaming established connections on occasions.
So the way in this patch seems preferable to me.

-- David

Attachment: chat_conn1a.diff.gz
Description: GNU Zip compressed data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] patch: chatline mesages and connections (PR#527), David Pfitzner <=