r-lmr / lmrdashboard

Dashboard project for #linuxmasterrace IRC displaying real-time information
https://dash.linuxmasterrace.org
GNU General Public License v3.0
2 stars 0 forks source link

fixed part/quit bug not parsing correctly #89

Closed aboft closed 3 years ago

aboft commented 3 years ago
:coke!coke@user/Tyler JOIN :#linuxmasterrace
coke oke %
ATTEMPTING TO ADD NEW USER coke
coke has come online.
:llh!coke@user/Tyler QUIT :Ping timeout: 120 seconds
User lh has parted.
RUNNING PARTANDQUIT
:coke!coke@user/Tyler NICK :llh

/lmrdashboard/backend/node_modules/mysql/lib/protocol/sequences/Sequence.js:47
  var err  = new Error(code + ': ' + packet.message);
             ^
Error: ER_DUP_ENTRY: Duplicate entry 'llh' for key 'online_users_user_unique'
    at Query.Sequence._packetToError (/lmrdashboard/backend/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/lmrdashboard/backend/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)

This issue derived from the parser being changed but using old logic which assumed a colon ':' was still in the prefix. This has been adjusted.