mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
bugfixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@252 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
329fbd3ee8
commit
9747762593
3 changed files with 19 additions and 5 deletions
|
|
@ -84,7 +84,6 @@ void botnet_broadcast(BOTNET_REC *botnet, BOT_REC *except_bot,
|
|||
{
|
||||
GSList *tmp;
|
||||
|
||||
g_return_if_fail(botnet != NULL);
|
||||
g_return_if_fail(data != NULL);
|
||||
|
||||
if (botnet != NULL) {
|
||||
|
|
@ -104,10 +103,17 @@ void botnet_send_cmd(BOTNET_REC *botnet, const char *source,
|
|||
const char *target, const char *data)
|
||||
{
|
||||
GNode *node;
|
||||
char *str;
|
||||
char *str;
|
||||
|
||||
g_return_if_fail(botnet != NULL);
|
||||
g_return_if_fail(target != NULL);
|
||||
g_return_if_fail(data != NULL);
|
||||
|
||||
node = bot_find_path(botnet, target);
|
||||
g_return_if_fail(node != NULL);
|
||||
if (node == NULL) {
|
||||
g_warning("Can't find route for target %s", target);
|
||||
return;
|
||||
}
|
||||
|
||||
str = g_strdup_printf("%s %s %s", source != NULL ? source :
|
||||
botnet->nick, target, data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue