Mercurial > pidgin
comparison plugins/PERL-HOWTO @ 2261:e243bf60f2d6
[gaim-migrate @ 2271]
Stefan Weyergraf and Artem Litvinovich both submitted patches that do similar things. I ended up taking Stefan's patch because it did more things than Artem's did.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Mon, 10 Sep 2001 22:27:47 +0000 |
| parents | bf35d7227592 |
| children | a49e8f1afbc4 |
comparison
equal
deleted
inserted
replaced
| 2260:aa69e80298bb | 2261:e243bf60f2d6 |
|---|---|
| 87 GETFILE 16 | 87 GETFILE 16 |
| 88 SENDFILE 32 | 88 SENDFILE 32 |
| 89 Since buddy lists are per-connection this goes through the connections | 89 Since buddy lists are per-connection this goes through the connections |
| 90 until it finds a matching buddy name. | 90 until it finds a matching buddy name. |
| 91 | 91 |
| 92 GAIM::write_to_conv(to, wflags, what, who) | |
| 93 This displays a message into a conversation window. <wflags> is the | |
| 94 message-style and works like that: | |
| 95 wflags==0: display message as if received by <who> | |
| 96 wflags==1: display message as if sent by <who> | |
| 97 wflags==2: display system message | |
| 98 | |
| 92 GAIM::print_to_conv(who, what, auto) | 99 GAIM::print_to_conv(who, what, auto) |
| 93 The question is not what does this do, it's who does this do it as. The | 100 The question is not what does this do, it's who does this do it as. The |
| 94 answer is "whatever the default is". It uses whichever connection is | 101 answer is "whatever the default is". It uses whichever connection is |
| 95 selected in the conversation window's menu. If the conversation window | 102 selected in the conversation window's menu. If the conversation window |
| 96 didn't exist beforehand, then it's the default (first) connection. If | 103 didn't exist beforehand, then it's the default (first) connection. If |
| 99 | 106 |
| 100 GAIM::print_to_chat(room, what) | 107 GAIM::print_to_chat(room, what) |
| 101 This goes through each connection. If it finds a room matching the name, | 108 This goes through each connection. If it finds a room matching the name, |
| 102 it'll print the message to that room. | 109 it'll print the message to that room. |
| 103 | 110 |
| 111 GAIM::serv_send_im(who, what, auto) | |
| 112 Same as print_to_conv, but it does not display the message. | |
| 104 | 113 |
| 105 GAIM::add_event_handler(event, function) | 114 GAIM::add_event_handler(event, function) |
| 106 This is the most important of them all. This is basically exactly like | 115 This is the most important of them all. This is basically exactly like |
| 107 gaim_signal_connect for plugins. You pass which event you want to connect to | 116 gaim_signal_connect for plugins. You pass which event you want to connect to |
| 108 (a string with the same name as the events for plugins, see SIGNALS), and a | 117 (a string with the same name as the events for plugins, see SIGNALS), and a |
