| 31293:169eeb43b52c | 31294:73607ab89c6f |
|---|---|
| 132 XWMHints *hints; | 132 XWMHints *hints; |
| 133 | 133 |
| 134 ids = getenv("WINDOWID"); | 134 ids = getenv("WINDOWID"); |
| 135 if (ids == NULL) | 135 if (ids == NULL) |
| 136 return; | 136 return; |
| 137 | 137 |
| 138 id = atoi(ids); | 138 id = atoi(ids); |
| 139 | 139 |
| 140 dpy = XOpenDisplay(NULL); | 140 dpy = XOpenDisplay(NULL); |
| 141 if (dpy == NULL) | 141 if (dpy == NULL) |
| 142 return; | 142 return; |
| 253 { | 253 { |
| 254 const char *nick; | 254 const char *nick; |
| 255 | 255 |
| 256 if (flags & PURPLE_MESSAGE_WHISPER) | 256 if (flags & PURPLE_MESSAGE_WHISPER) |
| 257 return; | 257 return; |
| 258 | 258 |
| 259 nick = PURPLE_CONV_CHAT(conv)->nick; | 259 nick = PURPLE_CONV_CHAT(conv)->nick; |
| 260 | 260 |
| 261 if (g_utf8_collate(sender, nick) == 0) | 261 if (g_utf8_collate(sender, nick) == 0) |
| 262 return; | 262 return; |
| 263 | 263 |
| 399 static void | 399 static void |
| 400 init_plugin(PurplePlugin *plugin) | 400 init_plugin(PurplePlugin *plugin) |
| 401 { | 401 { |
| 402 purple_prefs_add_none("/plugins"); | 402 purple_prefs_add_none("/plugins"); |
| 403 purple_prefs_add_none("/plugins/gnt"); | 403 purple_prefs_add_none("/plugins/gnt"); |
| 404 | 404 |
| 405 purple_prefs_add_none("/plugins/gnt/gntgf"); | 405 purple_prefs_add_none("/plugins/gnt/gntgf"); |
| 406 purple_prefs_add_none(PREFS_EVENT); | 406 purple_prefs_add_none(PREFS_EVENT); |
| 407 | 407 |
| 408 purple_prefs_add_bool(PREFS_EVENT_SIGNONF, TRUE); | 408 purple_prefs_add_bool(PREFS_EVENT_SIGNONF, TRUE); |
| 409 purple_prefs_add_bool(PREFS_EVENT_IM_MSG, TRUE); | 409 purple_prefs_add_bool(PREFS_EVENT_IM_MSG, TRUE); |