diff options
| -rw-r--r-- | slack_profile.pl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/slack_profile.pl b/slack_profile.pl index 0163cce..9a37429 100644 --- a/slack_profile.pl +++ b/slack_profile.pl @@ -197,6 +197,13 @@ sub update_user_profile { }); } +sub cmd_set { + my ($data, $server, $window_item) = @_; + my ($key, $value) = split /\s+/, $data, 2; + + update_user_profile($key, $value); +} + sub find_user { my ($username) = @_; @@ -280,8 +287,8 @@ sub swhois { Irssi::command_bind('swhois', 'swhois'); -Irssi::command_bind('slack_profile', 'sync'); -Irssi::command_bind('slack_profile sync', 'sync'); +Irssi::command_bind('slack_profile_sync', 'sync'); +Irssi::command_bind('slack_profile_set', 'cmd_set'); Irssi::command_bind('help', 'help'); |
