Skip to content

Commit

Permalink
Supports Furcadia fully now. Supports UID checking now #8
Browse files Browse the repository at this point in the history
  • Loading branch information
titegtnodI committed Dec 19, 2012
1 parent cf106fa commit 59487cd
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions plugins/tell.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,24 @@ def tell_tellTells(inMSG):
return

message = getSetting('Tell', inMSG[4])
if message:
messages = message[0][1].split('\x7f')
authors = message[0][2].split('\x7f')
for i in xrange(len(messages)):
if inMSG[1] == 'xmpp':
sendMSG(authors[i] + ' sent you: ' + messages[i], inMSG[1],
inMSG[2], inMSG[3])
else:
sendMSG(authors[i] + ' sent you: ' + messages[i], inMSG[1],
inMSG[2], inMSG[4])
delSetting('Tell', inMSG[4])
name = inMSG[4]
if not message:
message = getSetting('Tell', inMSG[5])
name = inMSG[5]
if not message:
return

messages = message[0][1].split('\x7f')
authors = message[0][2].split('\x7f')
for i in xrange(len(messages)):
msg = authors[i] + ' sent you: ' + messages[i]
if inMSG[1] == 'xmpp':
sendMSG(msg, inMSG[1], inMSG[2], inMSG[3])
elif inMSG[1] == 'furcadia':
sendMSG(msg, inMSG[1], inMSG[2], inMSG[5])
else:
sendMSG(msg, inMSG[1], inMSG[2], inMSG[4])
delSetting('Tell', name)

def load():
global funcs
Expand Down

0 comments on commit 59487cd

Please sign in to comment.