removed messages about people joining and leaving the server

This commit is contained in:
Uriziel 2013-01-25 00:37:50 +01:00
parent e5c23be7ca
commit e9427bff50

View File

@ -105,8 +105,7 @@ class SyncFactory(Factory):
self._createRoomIfDoesntExist(roomName) self._createRoomIfDoesntExist(roomName)
watcher = Watcher(self, watcherProtocol, username, roomName) watcher = Watcher(self, watcherProtocol, username, roomName)
with self._roomUpdate: with self._roomUpdate:
self._rooms[roomName][watcherProtocol] = watcher self._rooms[roomName][watcherProtocol] = watcher
print getMessage("en", "client-connected-room-server-notification").format(username, roomName, watcherProtocol.transport.getPeer().host)
reactor.callLater(0.1, watcher.scheduleSendState) reactor.callLater(0.1, watcher.scheduleSendState)
l = lambda w: w.sendUserSetting(username, roomName, None, {"joined": True}) l = lambda w: w.sendUserSetting(username, roomName, None, {"joined": True})
self.broadcast(watcherProtocol, l) self.broadcast(watcherProtocol, l)
@ -242,7 +241,6 @@ class SyncFactory(Factory):
self._removeWatcherFromTheRoom(watcherProtocol) self._removeWatcherFromTheRoom(watcherProtocol)
watcher.deactivate() watcher.deactivate()
self._deleteRoomIfEmpty(watcher.room) self._deleteRoomIfEmpty(watcher.room)
print getMessage("en", "client-left-server-notification").format(watcher.name)
if(self.ircVerbose): if(self.ircVerbose):
self.ircBot.sp_left(watcher.name, watcher.room) self.ircBot.sp_left(watcher.name, watcher.room)