Mercurial > pidgin
comparison plugins/SIGNALS @ 391:be408b41c172
[gaim-migrate @ 401]
Plugins got updated.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Mon, 12 Jun 2000 11:30:05 +0000 |
| parents | 4e91b92f91a7 |
| children | df5127560034 |
comparison
equal
deleted
inserted
replaced
| 390:0890c6250e7e | 391:be408b41c172 |
|---|---|
| 7 event_im_send, | 7 event_im_send, |
| 8 event_buddy_signon, | 8 event_buddy_signon, |
| 9 event_buddy_signoff, | 9 event_buddy_signoff, |
| 10 event_buddy_away, | 10 event_buddy_away, |
| 11 event_buddy_back, | 11 event_buddy_back, |
| 12 event_blist_update | 12 event_blist_update, |
| 13 event_chat_invited, | |
| 14 event_chat_join, | |
| 15 event_chat_leave, | |
| 16 event_chat_buddy_join, | |
| 17 event_chat_buddy_leave, | |
| 18 event_chat_recv, | |
| 19 event_chat_send, | |
| 20 event_warned, | |
| 21 event_error, | |
| 22 event_quit | |
| 13 }; | 23 }; |
| 14 | 24 |
| 15 To add a signal handler, call the fuction gaim_signal_connect with the | 25 To add a signal handler, call the fuction gaim_signal_connect with the |
| 16 following arguments: | 26 following arguments: |
| 17 | 27 |
| 101 event_blist_update: | 111 event_blist_update: |
| 102 (none) | 112 (none) |
| 103 | 113 |
| 104 This event is called when the buddylist is updated (automatically every | 114 This event is called when the buddylist is updated (automatically every |
| 105 20 seconds) | 115 20 seconds) |
| 116 | |
| 117 event_chat_invited: | |
| 118 char *who, char *room, char *message | |
| 119 | |
| 120 'who' is who invited you to a chat room. | |
| 121 'room' is the room they invited you to. | |
| 122 'message' is the (optional) message they sent to invite you, and may be | |
| 123 an empty string. | |
| 124 | |
| 125 event_chat_join: | |
| 126 char *room | |
| 127 | |
| 128 'room' is the chat room that you have just joined. | |
| 129 | |
| 130 event_chat_leave: | |
| 131 char *room | |
| 132 | |
| 133 'room' is the chat room that you have just left. | |
| 134 | |
| 135 event_chat_buddy_join: | |
| 136 char *room, char *who | |
| 137 | |
| 138 'room' is the room the person joined. | |
| 139 'who' is the screenname of the person who joined. | |
| 140 | |
| 141 event_chat_buddy_leave: | |
| 142 char *room, char *who | |
| 143 | |
| 144 'room' is the room the person left. | |
| 145 'who' is the screenname of the person who left. | |
| 146 | |
| 147 event_chat_recv: | |
| 148 char *room, char *who, char *text | |
| 149 | |
| 150 'room' should be obvious by now. | |
| 151 'who' should be too. | |
| 152 'text' is the message that got sent. | |
| 153 | |
| 154 Note that because of the bizarre way chat works, you also receive | |
| 155 messages that you send. I didn't design it, AOL did. | |
| 156 | |
| 157 event_chat_send: | |
| 158 char *room, char **text | |
| 159 | |
| 160 'room'. Need I say more. | |
| 161 'text' is what you're about to say, linkified/HTML-ized, but not | |
| 162 TOC-escaped. | |
| 163 | |
| 164 event_warned: | |
| 165 char *who, int level | |
| 166 | |
| 167 'who' is who warned you. Note that this can be NULL, indicating either | |
| 168 an anonymous warning, or your warning level has dropped. | |
| 169 'level' is your new warning level. | |
| 170 | |
| 171 event_error: | |
| 172 int error | |
| 173 | |
| 174 'error' is the number of the error as defined by the TOC PROTOCOL | |
| 175 document, which can be found in the docs/ directory of the source | |
| 176 tree. Note that if the person is using Oscar, this number can often | |
| 177 be misleading, as not all the errors have been worked out, and some | |
| 178 do not translate to TOC error codes cleanly. | |
| 179 | |
| 180 event_quit: | |
| 181 (none) | |
| 182 | |
| 183 Called when gaim quits normally. If gaim dies or is killed, this won't | |
| 184 be called. It's not my fault, it's Seg's. |
