mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-09 20:11:00 +00:00
twitter has interesting ways to break
This commit is contained in:
parent
75b77d4568
commit
6a4b0cee42
@ -88,14 +88,16 @@ void status_update(string text) {
|
|||||||
|
|
||||||
parse_statuses(string data) {
|
parse_statuses(string data) {
|
||||||
mixed wurst;
|
mixed wurst;
|
||||||
string nick;
|
string nick, err;
|
||||||
object o;
|
object o;
|
||||||
mapping d, p;
|
mapping d, p;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!data || data == "") return;
|
if (!data || data == "") return;
|
||||||
|
|
||||||
wurst = parse_json(data);
|
if (err = catch(wurst = parse_json(data))) {
|
||||||
|
P1(("%O: Twitter is over capacity. %O\n", ME, err))
|
||||||
|
}
|
||||||
if (mappingp(wurst))
|
if (mappingp(wurst))
|
||||||
wurst = ({ wurst });
|
wurst = ({ wurst });
|
||||||
else unless (pointerp(wurst)) {
|
else unless (pointerp(wurst)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user