Part is different from Quit, so you'll need a remote for both.
Code:
on *:PART:#USF:{
if ($me == StupBot) {
/msg $chan Bye bye. v.v
}
}
on *:QUIT: {
if ($me == StupBot) {
/msg $chan Bye bye. v.v
}
}