summaryrefslogtreecommitdiffstats
path: root/actions/settopic.py
diff options
context:
space:
mode:
Diffstat (limited to 'actions/settopic.py')
-rw-r--r--actions/settopic.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/actions/settopic.py b/actions/settopic.py
index 8fa574a..91ecc6c 100644
--- a/actions/settopic.py
+++ b/actions/settopic.py
@@ -4,8 +4,12 @@ class settopic:
4 self = [] 4 self = []
5 5
6 def getAction(self, data): 6 def getAction(self, data):
7 input = data.split(' ') 7 channel = data.params.split(' ')[3]
8 words = "" 8 words = data.params.split(' ')[4:]
9 for word in input[6:]: 9
10 words += ' ' + word 10
11 return 'TOPIC ' + input[5] + ' :' + words[1:] 11 say = ""
12 for word in words:
13 say += word + " "
14
15 return 'TOPIC ' + channel + ' :' + say