mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
server->ischannel(char *) -> server->ischannel(SERVER_REC *, char *). Added
#define server_ischannel(server, data) and it's now used everywhere.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1954 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9833844f38
commit
95b94ed83c
10 changed files with 13 additions and 10 deletions
|
|
@ -569,7 +569,7 @@ static void sig_complete_word(GList **list, WINDOW_REC *window,
|
|||
if (server == NULL && servers != NULL)
|
||||
server = servers->data;
|
||||
|
||||
if (server != NULL && server->ischannel(word)) {
|
||||
if (server != NULL && server_ischannel(server, word)) {
|
||||
/* probably completing a channel name */
|
||||
*list = completion_get_channels(window->active_server, word);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ static void cmd_ignore(const char *data)
|
|||
if (*levels == '\0') levels = "ALL";
|
||||
|
||||
if (active_win->active_server != NULL &&
|
||||
active_win->active_server->ischannel(mask)) {
|
||||
server_ischannel(active_win->active_server, mask)) {
|
||||
chanarg = mask;
|
||||
mask = NULL;
|
||||
}
|
||||
|
|
@ -187,7 +187,7 @@ static void cmd_unignore(const char *data)
|
|||
const char *chans[2] = { "*", NULL };
|
||||
|
||||
if (active_win->active_server != NULL &&
|
||||
active_win->active_server->ischannel(mask)) {
|
||||
server_ischannel(active_win->active_server, mask)) {
|
||||
chans[0] = mask;
|
||||
mask = NULL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -573,7 +573,7 @@ static int sig_autoremove(void)
|
|||
|
||||
server = server_find_tag(logitem->servertag);
|
||||
if (logitem->type == LOG_ITEM_TARGET &&
|
||||
server != NULL && !server->ischannel(logitem->name))
|
||||
server != NULL && !server_ischannel(server, logitem->name))
|
||||
log_close(log);
|
||||
}
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue