aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-05-05 15:23:17 +0100
committerMatthew Wild <mwild1@gmail.com>2010-05-05 15:23:17 +0100
commit242d67b43e37e5fa4a831011f70a2429957f7b6b (patch)
tree3544518eeb87b7575d8367bfa293ba17ea081757 /net/server_select.lua
parentc51d0beea7af41fd615cb11640a2a6bb0fcf1aab (diff)
downloadprosody-242d67b43e37e5fa4a831011f70a2429957f7b6b.tar.gz
prosody-242d67b43e37e5fa4a831011f70a2429957f7b6b.zip
net.server_select, net.server_event: Rename :pattern() method to :set_mode() for select backend, and add :set_mode() to event backend
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 6d6f7fbc..475e8aca 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -379,7 +379,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
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