Changeset 4a9fd5f


Ignore:
Timestamp:
2010-05-08T14:19:12Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
eaaa986
Parents:
fd45e1d1
Message:

Fixed *facepalm* memory management/scoping bug in /AWAY command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    rfd45e1d1 r4a9fd5f  
    551551               
    552552                irc_send_num( irc, 306, ":You're now away: %s", away );
    553                 set = away;
     553                set_setstr( &irc->b->set, "away", away );
    554554        }
    555555        else
    556556        {
    557557                irc_send_num( irc, 305, ":Welcome back" );
    558                 set = NULL;
    559         }
    560        
    561         set_setstr( &irc->b->set, "away", set );
     558                set_setstr( &irc->b->set, "away", NULL );
     559        }
    562560}
    563561
Note: See TracChangeset for help on using the changeset viewer.