Permalink
Browse files

Assertion is wrong

  • Loading branch information...
o-jasper committed Oct 20, 2015
1 parent 44f0333 commit 3fc0449aa9ba0756eb8e7674399b012bfe926b8c
Showing with 3 additions and 2 deletions.
  1. +3 −2 tox_comms/do/Tox/init.lua
@@ -17,8 +17,9 @@ This.__index = This
local function addr_fix(self, addr)
if self.overriding_addr[addr] then
assert(#addr > 64)
return self.overriding_addr[addr]
local r_addr = self.overriding_addr[addr]
assert( #r_addr > 64 )
return r_addr
elseif #addr > 64 then
local s_addr = string.sub(addr, 1, 64)
self.overriding_addr[s_addr] = addr

0 comments on commit 3fc0449

Please sign in to comment.