-static void cmd_wjoin_pre(const char *data, SERVER_REC *server)
-{
- GHashTable *optlist;
- char *nick;
- void *free_arg;
-
- if (!cmd_get_params(data, &free_arg, 1 | PARAM_FLAG_OPTIONS |
- PARAM_FLAG_UNKNOWN_OPTIONS | PARAM_FLAG_GETREST,
- "join", &optlist, &nick))
- return;
-
- /* kludge for /join -invite -window if there is no invite */
- if (g_hash_table_lookup(optlist, "invite") &&
- server != NULL && server->last_invite == NULL) {
- cmd_params_free(free_arg);
- return;
- }
- if (g_hash_table_lookup(optlist, "window") != NULL) {
- signal_add("channel created",
- (SIGNAL_FUNC) signal_channel_created_curwin);
- }
- cmd_params_free(free_arg);
-}
-