summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2021-06-09 09:32:10 +0200
committerMatthias Hecker <36882671+mattzque@users.noreply.github.com>2021-06-09 13:49:34 +0200
commit28502d92c420aefa3832e57561044efa06b9ab8b (patch)
tree470891f3ef1c04ee852d458e9829dd5820a279dc /lib/rbot
parent744be8fffda676653475d3034786e8ee246de609 (diff)
fix: webservice message user type
When the user logs in, m.source is already a botuser.
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/webservice.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/core/webservice.rb b/lib/rbot/core/webservice.rb
index eb01226c..112ec85e 100644
--- a/lib/rbot/core/webservice.rb
+++ b/lib/rbot/core/webservice.rb
@@ -534,7 +534,7 @@ class WebServiceModule < CoreBotModule
if not m.source
botuser = Auth::defaultbotuser
else
- botuser = m.source.botuser
+ botuser = m.source
end
netmask = '%s!%s@%s' % [botuser.username, botuser.username, m.client]