Jump to content

Module:Sock list: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 10: Line 10:


function listEntry(frame, args, sockNum, sock)
function listEntry(frame, args, sockNum, sock)
     local template = (isIp(sock) ~= "")
     local template = (isIp({args = {sock}}) ~= "") -- Pass 'sock' as part of a table to 'isIp'
         and (args.IP_template or args.template or 'checkip')
         and (args.IP_template or args.template or 'checkip')
         or (args.account_template or args.template or 'checkuser')
         or (args.account_template or args.template or 'checkuser')