projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added logos
[svn42.git]
/
update-xmpp-status.py
diff --git
a/update-xmpp-status.py
b/update-xmpp-status.py
index
35e9473
..
53be154
100755
(executable)
--- a/
update-xmpp-status.py
+++ b/
update-xmpp-status.py
@@
-301,7
+301,7
@@
def substituteMessageVariables(msg, door_tuple):
def formatAndDistributePresence(presence, door_tuple=(None,None)):
picurl=""
def formatAndDistributePresence(presence, door_tuple=(None,None)):
picurl=""
- if uwscfg.cam_provide_pic:
+ if uwscfg.cam_provide_pic == "True":
picurl="\n"+uwscfg.cam_picture_url
if presence == "yes":
distributeXmppMsg(substituteMessageVariables(uwscfg.msg_present, door_tuple)+picurl)
picurl="\n"+uwscfg.cam_picture_url
if presence == "yes":
distributeXmppMsg(substituteMessageVariables(uwscfg.msg_present, door_tuple)+picurl)
@@
-409,7
+409,7
@@
while True:
m = RE_REQUEST.match(line)
if not m is None:
last_request = m.group(1,3,2)
m = RE_REQUEST.match(line)
if not m is None:
last_request = m.group(1,3,2)
- if uwscfg.cam_provide_pic and (last_request[2] is None or not last_request[1] is None):
+ if uwscfg.cam_provide_pic == "True" and (last_request[2] is None or not last_request[1] is None):
if not touchURL(uwscfg.cam_freeze_url) == "ok":
logging.error("main: error freezing picture")
continue
if not touchURL(uwscfg.cam_freeze_url) == "ok":
logging.error("main: error freezing picture")
continue