Comparison

core/sessionmanager.lua @ 312:63e523629389

Fixed sessionmanager to not send session in place of stream features...
author Waqas Hussain <waqas20@gmail.com>
date Sun, 16 Nov 2008 04:45:31 +0500
parent 309:d9c8825b7332
child 317:dcb5bce69a0f
comparison
equal deleted inserted replaced
311:513bd52e8e19 312:63e523629389
109 modulemanager.fire_event("stream-features", session, features); 109 modulemanager.fire_event("stream-features", session, features);
110 110
111 send("<stream:features>"); 111 send("<stream:features>");
112 112
113 for _, feature in ipairs(features) do 113 for _, feature in ipairs(features) do
114 send(session, tostring(feature)); 114 send(tostring(feature));
115 end 115 end
116 116
117 send("</stream:features>"); 117 send("</stream:features>");
118 log("info", "Stream opened successfully"); 118 log("info", "Stream opened successfully");
119 session.notopen = nil; 119 session.notopen = nil;