Comparison

core/sessionmanager.lua @ 309:d9c8825b7332

Fixed sessionmanager to use appropriate method for sending stream features
author Waqas Hussain <waqas20@gmail.com>
date Sun, 16 Nov 2008 04:37:54 +0500
parent 304:7b28fa8bbfe5
child 312:63e523629389
comparison
equal deleted inserted replaced
308:6345cf3e994a 309:d9c8825b7332
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_to_session(session, tostring(feature)); 114 send(session, 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;