Software /
code /
prosody
Diff
net/server_select.lua @ 3001:fa00c6f563b4
net.server_select, net.server_event: Rename :pattern() method to :set_mode() for select backend, and add :set_mode() to event backend
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 May 2010 15:23:17 +0100 |
parent | 3000:43a4cb707fe4 |
child | 3002:d1f864ed44c0 |
line wrap: on
line diff
--- a/net/server_select.lua Wed May 05 15:21:17 2010 +0100 +++ b/net/server_select.lua Wed May 05 15:23:17 2010 +0100 @@ -379,7 +379,7 @@ handler.socket = function( self ) return socket end - handler.pattern = function( self, new ) + handler.set_mode = function( self, new ) pattern = new or pattern return pattern end