Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- people = {
- pfgminecraft=1
- }
- function string:split(inSplitPattern, outResults)
- if not outResults then
- outResults = {}
- end
- local theStart = 1
- local theSplitStart, theSplitEnd = string.find(self, inSplitPattern, theStart)
- while theSplitStart do
- table.insert(outResults,string.sub(self,theStart,theSplitStart - 1))
- theStart = theSplitEnd+1
- theSplitStart,theSplitEnd = string.find(self,inSplitPattern,theStart)
- end
- table.insert(outResults, string.sub(self,theStart))
- return outResults
- end
- rednet.open('bottom')
- while true do
- local senderid, message, protocol = rednet.receive("mailreq")
- rednet.send(people[message.split(',')[1]],senderid .. "," .. (string.gsub(message.split(',')[2],",",'[comma]')), 'mailreq')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement