| 23 char *gaim_plugin_error(int error) { |
24 char *gaim_plugin_error(int error) { |
| 24 /* by the time we've gotten here, all our callbacks are removed. |
25 /* by the time we've gotten here, all our callbacks are removed. |
| 25 * we just have to deal with what the error was (as defined by us) |
26 * we just have to deal with what the error was (as defined by us) |
| 26 * and do any other clean-up stuff we need to do. */ |
27 * and do any other clean-up stuff we need to do. */ |
| 27 switch (error) { |
28 switch (error) { |
| 28 case 0: |
29 case -1: |
| 29 do_error_dialog("I'm calling the error myself", "MY BAD"); |
30 do_error_dialog("I'm calling the error myself", "MY BAD"); |
| 30 return NULL; |
31 return NULL; |
| 31 case 2: |
32 case -2: |
| 32 return "Internal plugin error: exiting."; |
33 return "Internal plugin error: exiting."; |
| 33 } |
34 } |
| 34 /* we should never get here */ |
35 /* we should never get here */ |
| 35 return NULL; |
36 return NULL; |
| 36 } |
37 } |