aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorAlex Crawford <crawford@redhat.com>2018-04-26 14:42:08 -0700
committerTollef Fog Heen <tfheen@err.no>2018-04-27 06:29:16 +0200
commitbde46931a60127b2f3a2bf7c9c554b9fb7848d34 (patch)
tree26bd9055dff4e3b1f2f7ad3d35213ad5a4a3f11d /wee_slack.py
parent285bb47caf7e477f5faefd1970eb1d6a4d4f5a1c (diff)
downloadwee-slack-bde46931a60127b2f3a2bf7c9c554b9fb7848d34.tar.gz
Fix nick sanitization
This now properly replaces spaces with underscores.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 1b6919d..6b69096 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2938,8 +2938,7 @@ def format_nick(nick):
def tag(tagset, user=None):
if user:
- user.replace(" ", "_")
- default_tag = "nick_" + user
+ default_tag = "nick_" + user.replace(" ", "_")
else:
default_tag = 'nick_unknown'
tagsets = {