maxmetagravity / prosody-modules

Automatically exported from code.google.com/p/prosody-modules
MIT License
0 stars 0 forks source link

mod_smacks: Typo fix #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The current code of mod_smacks in the default branch has a small typo, which 
causes the following message in the error log:

May 14 00:41:14 mod_c2s error   Traceback[c2s]: 
/var/lib/prosody/modules/mod_smacks/mod_smacks.lua:208: attempt to index global 
'session' (a nil value)
stack traceback:
    /var/lib/prosody/modules/mod_smacks/mod_smacks.lua:208: in function </var/lib/prosody/modules/mod_smacks/mod_smacks.lua:196>
    (tail call): ?
    /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
    /usr/lib/prosody/core/stanza_router.lua:146: in function </usr/lib/prosody/core/stanza_router.lua:55>
    (tail call): ?
    [C]: in function 'xpcall'
    /usr/lib/prosody/modules/mod_c2s.lua:123: in function 'cb_handlestanza'
    /usr/lib/prosody/util/xmppstream.lua:187: in function </usr/lib/prosody/util/xmppstream.lua:167>
    [C]: in function 'parse'
    /usr/lib/prosody/util/xmppstream.lua:255: in function 'feed'
    /usr/lib/prosody/modules/mod_c2s.lua:230: in function 'data'
    /usr/lib/prosody/modules/mod_c2s.lua:252: in function 'onincoming'
    /usr/lib/prosody/net/server_event.lua:626: in function </usr/lib/prosody/net/server_event.lua:572>
    [C]: in function 'loop'
    /usr/lib/prosody/net/server_event.lua:787: in function </usr/lib/prosody/net/server_event.lua:786>
    [C]: in function 'xpcall'
    /usr/bin/prosody:373: in function 'loop'
    /usr/bin/prosody:403: in main chunk
    [C]: ?

The session is called origin. :)

I have a fix here: 
https://code.google.com/r/thorus-prosody-modules/source/list?name=fix-smacks-typ
o

Original issue reported on code.google.com by tho...@gmail.com on 13 May 2014 at 11:08