SMS module: new nemubot version fix
This commit is contained in:
parent
bd92f64449
commit
fe709e630f
1 changed files with 3 additions and 3 deletions
|
@ -62,10 +62,10 @@ def cmd_sms(msg):
|
||||||
fails = list()
|
fails = list()
|
||||||
for u in msg.cmds[1].split(","):
|
for u in msg.cmds[1].split(","):
|
||||||
DATAS.index[u]["lastuse"] = cur_epoch
|
DATAS.index[u]["lastuse"] = cur_epoch
|
||||||
if msg.private:
|
if msg.to_response[0] == msg.frm:
|
||||||
frm = msg.nick
|
frm = msg.frm
|
||||||
else:
|
else:
|
||||||
frm = msg.nick + "@" + msg.channel
|
frm = msg.frm + "@" + msg.to[0]
|
||||||
test = send_sms(frm, DATAS.index[u]["user"], DATAS.index[u]["key"], " ".join(msg.cmds[2:]))
|
test = send_sms(frm, DATAS.index[u]["user"], DATAS.index[u]["key"], " ".join(msg.cmds[2:]))
|
||||||
if test is not None:
|
if test is not None:
|
||||||
fails.append( "%s: %s" % (u, test) )
|
fails.append( "%s: %s" % (u, test) )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue