diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2016-04-01 17:03:07 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2016-04-01 18:13:33 +0200 |
commit | a2ea5650a3b56ca12a8d0f57037b78c2153d4799 (patch) | |
tree | 9e35eec02badbabe19abe1704b7535385cf65de0 | |
parent | fabd8894affd8b823924cf3366cf8088bb281b26 (diff) | |
download | wee-slack-a2ea5650a3b56ca12a8d0f57037b78c2153d4799.tar.gz |
Prefix the server buffer name with slack instead of suffixing it
Instead of using the format `$team.slack.com` for the server buffer
name, change it to `slack.$team`. This makes it easier to see that the
buffer is a slack buffer.
Additionally, it makes it possible to set options where you specify the
start of the buffer name for all of the slack buffers. For example, it
makes it possible to set the option `logger.mask.python.slack` for
setting a logger file mask for all of the slack buffers.
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 4164f9d..b1e0820 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -222,7 +222,7 @@ class SlackServer(object): self.server_buffer_name = alias self.alias = alias else: - self.server_buffer_name = self.domain + self.server_buffer_name = "slack." + login_data["team"]["domain"] self.nick = login_data["self"]["name"] self.create_local_buffer() |