Code Monkey home page Code Monkey logo

modular_muc's People

Contributors

cstar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

loe chinnurtb

modular_muc's Issues

mod_muc_log errors instead of logging

Hi there. I pulled the master branch, built according to instructions and installed it into my instance of ejabberd. I reloaded the modules from the webadmin and got similar results so I restarted ejabberd to make sure. It appears that with mod_muc and mod_muc_log disagree on the communication protocol. I am using ejabberd 2.1.3 on erlang R13b with mod_muc and mod_muc_log configured configured as:

  {mod_muc,      [
          %%{host, "conference.@HOST@"},
          {access, muc},
          {access_create, muc},
          {access_persistent, muc},
          {access_admin, muc_admin},
          {max_users, 500}
         ]},
  {mod_muc_log,[
                 {outdir, "/var/log/ejabberd/muclogs"}
               ]},

The outdir /var/log/ejabberd/muclogs is chown ejabberd:adm, owner and group writable, and ejabberd runs as the ejabberd user.

When the room is created, there is no problem.

=INFO REPORT==== 2010-09-16 09:37:19 ===
I(<0.418.0>:mod_muc_room:149) : Created MUC room [email protected] by user@localhost/luxuria

Then, when logging is enabled, we see the first error in ejabberd.log:

=ERROR REPORT==== 2010-09-16 09:37:32 ===
E(<0.403.0>:mod_muc_log:173) : {badarg,
                                [{lists,keysearch,
                                  [title,1,
                                   {state,"chat","conference.localhost",
                                    "localhost",
                                    {muc,muc,muc_admin,muc},
                                    muc_storage_default,muc_room_default,
                                    {jid,"chat","conference.localhost",[],
                                     "chat","conference.localhost",[]},
                                    {config,[],[],true,true,true,true,true,
                                     false,200,true,true,true,false,true,
                                     false,false,false,[],true,true,[]},
                                    {dict,1,16,16,8,80,48,
                                     {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]},
                                     {{[],[],[],[],[],[],[],[],[],[],[],[],
                                       [[{"user","localhost","luxuria"}|
                                         {user,
                                          {jid,"user","localhost",
                                           "luxuria","user","localhost",
                                           "luxuria"},
                                          "user",moderator,
                                          {xmlelement,"presence",
                                           [{"xml:lang","en"},
                                            {"to",
                                             "[email protected]/user"}],
                                           [{xmlelement,"priority",[],
                                             [{xmlcdata,<<"5">>}]},
                                            {xmlelement,"c",
                                             [{"xmlns",
                                               "http://jabber.org/protocol/caps"},
                                              {"node",
                                               "http://psi-im.org/caps"},
                                              {"ver","0.13-dev-rev2"},
                                              {"ext","cs ep-notify html"}],
                                             []}]}}]],
                                       [],[],[]}}},
                                    {dict,0,16,16,8,80,48,
                                     {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]},
                                     {{[],[],[],[],[],[],[],[],[],[],[],[],[],
                                       [],[],[]}}},
                                    {dict,1,16,16,8,80,48,
                                     {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]},
                                     {{[[{"user","localhost",[]}|owner]],
                                       [],[],[],[],[],[],[],[],[],[],[],[],[],
                                       [],[]}}},
                                    {lqueue,{[],[]},0,20},
                                    [],[],false,nil,none,
                                    {[],[]}}]},
                                 {mod_muc_log,get_room_info,2},
                                 {mod_muc_log,add_message_to_log,5},
                                 {mod_muc_log,handle_cast,2},
                                 {gen_server,handle_msg,5},
                                 {proc_lib,init_p_do_apply,3}]}

And upon saying something ('test'), we get the following error:

=ERROR REPORT==== 2010-09-16 09:40:24 ===
E(<0.403.0>:mod_muc_log:173) : {badarg,
                                [{lists,keysearch,
                                  [title,1,
                                   {state,"chat","conference.localhost",
                                    "localhost",
                                    {muc,muc,muc_admin,muc},
                                    muc_storage_default,muc_room_default,
                                    {jid,"chat","conference.localhost",[],
                                     "chat","conference.localhost",[]},
                                    {config,[],[],true,true,true,true,true,
                                     false,200,true,true,true,false,true,
                                     false,false,false,[],true,true,[]},
                                    {dict,1,16,16,8,80,48,
                                     {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]},
                                     {{[],[],[],[],[],[],[],[],[],[],[],[],
                                       [[{"user","localhost","luxuria"}|
                                         {user,
                                          {jid,"user","localhost",
                                           "luxuria","user","localhost",
                                           "luxuria"},
                                          "user",moderator,
                                          {xmlelement,"presence",
                                           [{"xml:lang","en"},
                                            {"to",
                                             "[email protected]/user"}],
                                           [{xmlelement,"priority",[],
                                             [{xmlcdata,<<"5">>}]},
                                            {xmlelement,"c",
                                             [{"xmlns",
                                               "http://jabber.org/protocol/caps"},
                                              {"node",
                                               "http://psi-im.org/caps"},
                                              {"ver","0.13-dev-rev2"},
                                              {"ext","cs ep-notify html"}],
                                             []}]}}]],
                                       [],[],[]}}},
                                    {dict,0,16,16,8,80,48,
                                     {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]},
                                     {{[],[],[],[],[],[],[],[],[],[],[],[],[],
                                       [],[],[]}}},
                                    {dict,1,16,16,8,80,48,
                                     {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]},
                                     {{[[{"user","localhost",[]}|owner]],
                                       [],[],[],[],[],[],[],[],[],[],[],[],[],
                                       [],[]}}},
                                    {lqueue,{[],[]},0,20},
                                    [],[],false,nil,none,
                                    {[],[]}}]},
                                 {mod_muc_log,get_room_info,2},
                                 {mod_muc_log,add_message_to_log,5},
                                 {mod_muc_log,handle_cast,2},
                                 {gen_server,handle_msg,5},
                                 {proc_lib,init_p_do_apply,3}]}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.