Menu

IRC support

Help
kknull
2007-12-08
2013-04-25
  • kknull

    kknull - 2007-12-08

    Hi, is it possible to make the plugin work with irc?
    Thanks.

     
    • Qjuh

      Qjuh - 2007-12-08

      Yes it is, with the latest CVS-sources (official release will be soon).

       
    • kknull

      kknull - 2007-12-08

      Hi,
      I think that latex image output is too small (some symbols are difficult to read...). I added a "-x 1300" to dvips parameters (line 351) and seems to be ok. What do you think?

      KKnull.

       
      • Qjuh

        Qjuh - 2007-12-08

        Well, I had such ideas several times already, but somehow I never found the time to look through the manpages for such an option. Thx for the hint => implemented.

         
    • kknull

      kknull - 2007-12-12

      Hi,
      There is a bug in the plugin. Nicknames are not shown correctly in irc when using latex.

      This because of using the function purple_conversation_get_im_data in message_recv (line 625).

      I'd rather use this code:

      gpointer ret = NULL;
      ...
      ...
      if (conv_type == PURPLE_CONV_TYPE_CHAT)
          ret = purple_conversation_get_chat_data(conv);
      else if (conv_type == PURPLE_CONV_TYPE_IM)
          ret = purple_conversation_get_im_data(conv);
      if (ret != NULL){
      ...
      ...

      (Thanks to Zmax)

      KKnull.

       
      • kknull

        kknull - 2007-12-12

        sorry,
        This is the correct statement:

        PurpleConversationType conv_type;
        gpointer ret = NULL;
        ..
        ..
        if (conv_type == PURPLE_CONV_TYPE_CHAT)
        ret = purple_conversation_get_chat_data(conv);
        else if (conv_type == PURPLE_CONV_TYPE_IM)
        ret = purple_conversation_get_im_data(conv);
        if (ret != NULL){

         
        • kknull

          kknull - 2007-12-13

          Sorry again!

          PurpleConversationType conv_type;
          gpointer ret = NULL; 
          ..
          ..
          conv_type = purple_conversation_get_type(conv);
          if (conv_type == PURPLE_CONV_TYPE_CHAT) 
          ret = purple_conversation_get_chat_data(conv); 
          else if (conv_type == PURPLE_CONV_TYPE_IM) 
          ret = purple_conversation_get_im_data(conv); 
          if (ret != NULL){

           
          • Qjuh

            Qjuh - 2007-12-13

            I fixed the bug, but otherwise than you proposed, because it was way easier because of the nice API provided by Pidgin. Available in repo and in release pidgin-latex-1.2.1

             

Log in to post a comment.