Ticket #512: README

File README, 2.2 kB (added by Mefistofeles, 6 months ago)

README file

Line 
1
2This is a.k.a. plugin (Nick Tracker)
3
4To get this plugin to work we need to do some things:
5
6Prerequisites:
7
81. sqlite3-3.5.9
92. Pidgin 2.4.2 source code
103. Add two signals to pidgin's conversation.c source code and rebuild and re-install pidgin.
114. Purple Plugin Pack
12
13Installation:
14
151. Make sure you have installed sqlite3-3.5.9 on your system.
16
172. Download and extract the Pidgin 2.4.2 source code
18
193. Add two signals to pidgin's conversation.c source code and rebuild and re-install pidgin.
20Edit pidgin-2.4.2/libpurple/conversation.c and add/replace the next lines:
21
22Goto line 1643 and replace:
23                tmp = g_strdup_printf(_("%s [<I>%s</I>] entered the room."),
24                                      escaped, escaped2);
25
26with this:
27                char *extrainfo="";
28                purple_signal_emit(purple_conversations_get_handle(),
29                                 "chat-buddy-entered-room", conv, user, (const char *)escaped2, &extrainfo);
30                tmp = g_strdup_printf(_("%s [<I>%s</I>] entered the room. %s"),
31                                      escaped, escaped2, extrainfo);
32
33Goto line 1779 and add this lines just before the gfree(escaped):
34            purple_signal_emit(purple_conversations_get_handle(),
35                             "chat-buddy-now-known-as", conv, (const char *)escaped, (const char *)escaped2);
36
37Goto line 2171 and add the next lines just after the * Register signals comment:
38   
39    purple_signal_register(handle, "chat-buddy-now-known-as",
40                         purple_marshal_VOID__POINTER_POINTER_POINTER, NULL, 3,
41                         purple_value_new(PURPLE_TYPE_SUBTYPE,
42                                        PURPLE_SUBTYPE_CONVERSATION),
43                         purple_value_new(PURPLE_TYPE_STRING),
44                         purple_value_new(PURPLE_TYPE_STRING));
45                         
46    purple_signal_register(handle, "chat-buddy-entered-room",
47                         purple_marshal_VOID__POINTER_POINTER_POINTER_POINTER, NULL, 4,
48                         purple_value_new(PURPLE_TYPE_SUBTYPE,
49                                        PURPLE_SUBTYPE_CONVERSATION),
50                         purple_value_new(PURPLE_TYPE_STRING),
51                         purple_value_new(PURPLE_TYPE_STRING),
52                         purple_value_new_outgoing(PURPLE_TYPE_STRING));
53   
54Rebuild pidgin and re-install it.                       
55
56
57
584. Purple Plugin Pack
59Uncompress the aka.tar.gz and copy the folder inside purple-plugin_pack-2.3.0 folder.
60Edit and modify the purple pack configuration files as you may know and then
61
62./configure --enable-debug
63
64make
65make install
66