Changeset 6d212f4
- Timestamp:
- 2016-12-26T00:20:09Z (8 years ago)
- Branches:
- master
- Children:
- 59ccef5
- Parents:
- 7486853
- git-author:
- dequis <dx@…> (25-12-16 23:41:13)
- git-committer:
- dequis <dx@…> (26-12-16 00:20:09)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/purple/purple.c
r7486853 r6d212f4 1640 1640 } 1641 1641 } 1642 1643 /* borrowing this semi-private function 1644 * TODO: figure out a better interface later (famous last words) */ 1645 gboolean plugin_info_add(struct plugin_info *info); 1642 1646 1643 1647 void purple_initmodule() … … 1741 1745 PurplePluginProtocolInfo *pi = prot->info->extra_info; 1742 1746 struct prpl *ret; 1747 struct plugin_info *info; 1743 1748 1744 1749 /* If we already have this one (as a native module), don't … … 1775 1780 register_protocol(ret); 1776 1781 } 1782 1783 info = g_new0(struct plugin_info, 1); 1784 info->abiver = BITLBEE_ABI_VERSION_CODE; 1785 info->name = ret->name; 1786 info->version = prot->info->version; 1787 info->description = prot->info->description; 1788 info->author = prot->info->author; 1789 info->url = prot->info->homepage; 1790 1791 plugin_info_add(info); 1777 1792 } 1778 1793 -
root_commands.c
r7486853 r6d212f4 1222 1222 1223 1223 for (l = get_plugins(); l; l = l->next) { 1224 char *c; 1224 1225 info = l->data; 1225 irc_rootmsg(irc, format, info->name, info->version); 1226 1227 /* some purple plugins like to include several versions separated by newlines... */ 1228 if ((c = strchr(info->version, '\n'))) { 1229 char *version = g_strndup(info->version, c - info->version); 1230 irc_rootmsg(irc, format, info->name, version); 1231 g_free(version); 1232 } else { 1233 irc_rootmsg(irc, format, info->name, info->version); 1234 } 1226 1235 } 1227 1236 #endif
Note: See TracChangeset
for help on using the changeset viewer.